code: def load(
      cls, model_path: Union[str, Path, Dict[str, Any]]
  ) -> "RelationExtractor":
      from typing import cast
  
      return cast(
          "RelationExtractor", super().load(model_path=model_path)
      )
  
file_path: flair/flair/models/relation_extractor_model.py
imports: import logging
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Set, Tuple, Union
  import torch
  import flair.embeddings
  import flair.nn
  from flair.data import Relation, Sentence
  from flair.file_utils import cached_path
label_desc: Use image node_id 9 for calling the RelationExtractor obj's underlying member method code with example usage: obj.load(cls, model_path) and returns: cast