def METHOD_NAME(self, pattern: "Optional[str]" = None) -> "Generator[str]":
    """Generator method that iterates over all UUIDs in the storage
    who"s metadata URI matches glob pattern `pattern`.
    Parameters:
        pattern: A regular expression to filter the yielded UUIDs.
    Yields:
        DLite Instance UUIDs based on the `pattern` regular expression.
        If no `pattern` is given, all UUIDs are yielded from within the
        RDF storage.
    """
    for s, _, o in self.graph.triples((None, DM.hasUUID, None)):
        if pattern:
            metaid = str(list(self.graph.objects(s, DM.instanceOf))[0])
            if dlite.globmatch(pattern, metaid):
                continue
        yield str(o)