def METHOD_NAME(self, scope, name, key, value, recursive=False, *, session: "Optional[Session]" = None):
    """
    Add metadata to data identifier.
    :param scope: The scope name.
    :param name: The data identifier name.
    :param key: the key.
    :param value: the value.
    :param did: The data identifier info.
    :param recursive: Option to propagate the metadata change to content.
    :param session: The database session in use.
    """
    pass