def ensure_list(value):
    return value if isinstance(value, list) else [value]
Retrieve the target parameter
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/helpers/config_validation.py/ensure_list--crossover with--dataset/ETHPy150Open sysdream/pysqli/pysqli/core/context.py/Context.get_target_param