def METHOD_NAME(cls, data, datapath: Optional[DataPath] = None):
    """Creates a python interface object from the given raw data.
    This function can assume fully normalized and valid data. It can create
    defaults where data is missing but does not need to handle interface
    validation.
    """
    if data is None:
        return None
    rv = cls(**data)
    object.__setattr__(rv, "datapath", datapath)
    return rv