code: def _init_model_with_state_dict(cls, state, **kwargs):
      return super()._init_model_with_state_dict(
          state,
          embeddings=state.get("embeddings"),
          label_dictionary=state.get("label_dictionary"),
          label_type=state.get("label_type"),
          entity_label_type=state.get("entity_label_type"),
          loss_weights=state.get("weight_dict"),
          pooling_operation=state.get("pooling_operation"),
          entity_pair_filters=state.get("entity_pair_filters"),
          train_on_gold_pairs_only=state.get(
              "train_on_gold_pairs_only", False
          ),
          **kwargs,
      )
  
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 6 for calling the RelationExtractor obj's underlying member method code with example usage: obj._init_model_with_state_dict(cls, state) and returns: super