Ensure an object is a Parameter or container over parameters.
If the object is already a Parameter, it is returned unchanged.
Otherwise, the underlying objects are converted into new Parameter objects.
- Parameters:
x (Any | list[Any] | dict[str, Any]) – The object to convert.
**kwargs – Additional keyword arguments passed to the Parameter constructor (e.g. name).
- Returns:
The object wrapped as a Parameter.
- Return type:
Parameter