def METHOD_NAME(self, property_name, prop):
    """Register given property with the given name.
    Parameters
    ----------
    property_name : str
        Property name.
    prop : Int, String, Float, Field, StringField, GenericDataContainer, Scoping
        object instance.
    """
    any_dpf = Any.new_from(prop, self._server)
    self._api.generic_data_container_set_property_any(self, property_name, any_dpf)