code: def splits(
      cls,
      text_field,
      path=None,
      root=".data",
      task=1,
      joint=False,
      tenK=False,
      only_supporting=False,
      train=None,
      validation=None,
      test=None,
      **kwargs,
  ):
      assert isinstance(task, int) and 1 <= task <= 20
      if tenK:
          cls.dirname = os.path.join("tasks_1-20_v1-2", "en-valid-10k")
      else:
          cls.dirname = os.path.join("tasks_1-20_v1-2", "en-valid")
      if path is None:
          path = cls.download(root)
      if train is None:
          if joint:  # put all tasks together for joint learning
              train = "all_train.txt"
              if not os.path.isfile(os.path.join(path, train)):
                  with open(os.path.join(path, train), "w") as tf:
                      for task in range(1, 21):
                          with open(
                              os.path.join(
                                  path, "qa" + str(task) + "_train.txt"
                              )
                          ) as f:
                              tf.write(f.read())
          else:
              train = "qa" + str(task) + "_train.txt"
      if validation is None:
          if joint:  # put all tasks together for joint learning
              validation = "all_valid.txt"
              if not os.path.isfile(os.path.join(path, validation)):
                  with open(os.path.join(path, validation), "w") as tf:
                      for task in range(1, 21):
                          with open(
                              os.path.join(
                                  path, "qa" + str(task) + "_valid.txt"
                              )
                          ) as f:
                              tf.write(f.read())
          else:
              validation = "qa" + str(task) + "_valid.txt"
      if test is None:
          test = "qa" + str(task) + "_test.txt"
      return super(BABI20, cls).splits(
          path=path,
          root=root,
          text_field=text_field,
          train=train,
          validation=validation,
          test=test,
          **kwargs,
      )
  
file_path: pytext/pytext/legacy/datasets/babi.py
imports: import os
  from io import open
  import torch
  from ..data import Dataset, Example, Field, Iterator
label_desc: Use image node_id 3 for calling the BABI20 obj's underlying member method code with example usage: obj.splits(cls, text_field, path, root, task, joint, tenK, only_supporting, train, validation, test) and returns: super