def METHOD_NAME(self, prefix: NoneStr, uri: str):
    """
    Add the given prefix-URI namespaces mapping if the prefix is new.
    :param prefix: Namespace prefix
    :param uri: Namespace uri
    """
    if prefix not in self.ns_map:
        self.ns_map[prefix] = uri