def METHOD_NAME(value):
    """
    Converts scalars and lists to numpy arrays if they aren't yet.
    :param value: (number|list) Value to be converted to a numpy array.
    :return: (np.ndarray) Numpy array of the input value.
    """
    if not isinstance(value, np.ndarray):
        if not isinstance(value, list):
            value = [value]
        return np.array(value)
    return value