def METHOD_NAME(cls, data):
    if isinstance(data, (str, type(None), int, float)):
        return data
    if isinstance(data, dict):
        return cls._from_data_dict(data)
    if isinstance(data, list):
        return cls._from_data_list(data)
    raise RuntimeError(f"Wrong data type '{type(data)}' ")