def METHOD_NAME():
    """Callback function are not serializiable.
    Therefore, we get them a chance to return something and if the returned type is not accepted, return None.
    """
    def return_something():
        return "something"
    def wrapper_something():
        return return_something
    params = Namespace(
        foo="bar",
        something=return_something,
        wrapper_something_wo_name=(lambda: lambda: "1"),
        wrapper_something=wrapper_something,
    )
    params = _convert_params(params)
    params = _flatten_dict(params)
    params = _sanitize_callable_params(params)
    assert params["foo"] == "bar"
    assert params["something"] == "something"
    assert params["wrapper_something"] == "wrapper_something"
    assert params["wrapper_something_wo_name"] == "<lambda>"