def importance(self,
                 memory: str,
                 context: Sequence[tuple[str, float]] = ()) -> float:
    """Computes importance of a memory.

    Args:
      memory: a memory (text) to compute importance of
      context: a sequence of tuples of (old memory (str), importance
        (float between 0 and 1)) used to provide context and relative scale for
        the decision of the importance of the new memory.

    Returns:
      Value of importance in the [0,1] interval
    """

    raise NotImplementedError
Computes importance of a memory.

    Args:
      memory: a memory (text) to compute importance of
      context: a sequence of tuples of (old memory (str), importance
        (float between 0 and 1)) used to provide context and relative scale for
        the decision of the importance of the new memory.

    Returns:
      Value of importance in the [0,1] interval
    
concordia/associative_memory/deprecated/importance_function.py