code: def run(self):
      opt = self.opt
      paths = glob.glob(f"{opt['path']}/*_conversations.jsonl")
  
      for path in paths:
          name = path.split("/")[-1]
          sys_utt_one = InterDistinctMetric.compute("", 1)
          sys_utt_two = InterDistinctMetric.compute("", 2)
          user_utt_one = InterDistinctMetric.compute("", 1)
          user_utt_two = InterDistinctMetric.compute("", 2)
  
          with open(path) as f:
              for line_raw in f:
                  line = json.loads(line_raw)["dialog"]
                  for turn in line:
                      if len(turn) < 4:
                          continue
                      user_utt = turn[0]["text"]
                      if user_utt.startswith("APIS: "):
                          continue
                      user_utt_one += InterDistinctMetric.compute(
                          user_utt, 1
                      )
                      user_utt_two += InterDistinctMetric.compute(
                          user_utt, 2
                      )
  
                      sys_utt = turn[3]["text"]
                      sys_utt_one += InterDistinctMetric.compute(
                          sys_utt, 1
                      )
                      sys_utt_two += InterDistinctMetric.compute(
                          sys_utt, 2
                      )
  
          print(
              ",".join(
                  [
                      str(x)
                      for x in [
                          name,
                          user_utt_one.value(),
                          user_utt_two.value(),
                          sys_utt_one.value(),
                          sys_utt_two.value(),
                      ]
                  ]
              )
          )
  
file_path: ParlAI/projects/tod_simulator/scripts/get_interdistinct_on_conversations.py
imports: from parlai.core.metrics import InterDistinctMetric
  from parlai.core.params import ParlaiParser
  from parlai.core.script import ParlaiScript, register_script
  import glob
  import json
label_desc: Use image node_id 2 for calling the GetInterdistinctOnConversationsScript obj's underlying member method code with example usage: obj.run() without return types