docs: def add_warning(self,
                      exception: BELParserWarning,
                      context: Optional[Mapping[str, Any]] = None,
                      ) -> None:
          """Add a warning to the internal warning log in the graph, with optional context information.
  
          :param exception: The exception that occurred
          :param context: The context from the parser when the exception occurred
          """
          self.warnings.append((
              self.path,
              exception,
              {} if context is None else context,
          ))