code: def load_data(self, unseen_types):
      with open(self.path, "rb") as f:
          data = pickle.load(f)
  
      for l_in, l_out, l_info in zip(
          data["input"], data["target"], data["all"]
      ):
          if len(unseen_types) > 0:
              if isinstance(l_info, tuple):
                  # instance base
                  if l_info[1] in unseen_types:
                      continue
              else:
                  # trigger base, used in argument model
                  if l_info["event type"] in unseen_types:
                      continue
          self.data.append(
              {"input": l_in, "target": l_out, "info": l_info}
          )
      logger.info(f"Loaded {len(self)} instances from {self.path}")
  
imports: import json, logging, pickle
  from mimetypes import knownfiles
  from unittest.mock import NonCallableMagicMock
  import torch
  from torch.utils.data import Dataset
  from collections import namedtuple
label_desc: Use image node_id 4 for calling the GenDataset obj's underlying member method code with example usage: obj.load_data(unseen_types) without return types