code: def get_gsgd_episodes_for_datatype(self, datatype):
      datapath = PARLAI_DATA_PATH
      if "datapath" in self.opt:
          datapath = self.opt["datapath"]
      elif "parlai_home" in self.opt:
          datapath = self.opt["parlai_home"] + "/data"
      opt = {
          "datatype": datatype,
          "datapath": datapath,
          "gsgd_domains": "all",
          "n_shot": -1,
          "episodes_randomization_seed": -1,
      }
      return GrabEpisodes(opt).episodes
  
imports: from parlai.core.params import ParlaiParser
  from parlai.core.script import ParlaiScript, register_script
  from parlai.tasks.google_sgd_simulation_splits.agents import GoogleSgdOutDomainParser
  from parlai.core.tod.tod_agents import TodStructuredDataParser
  import parlai
  import os
  import json
  import random
label_desc: Use image node_id 5 for calling the GetAlSamplesForGsgdScript obj's underlying member method code with example usage: obj.get_gsgd_episodes_for_datatype(datatype) and returns: GrabEpisodes