code: def write_data_files(cls, dpext, out_path, d_vocab, d_label_answer):
      data_fnames_tmpl = [
          (
              "train.%s",
              "InsuranceQA.question.anslabel.token.%s.pool.solr.train.encoded.gz",
          ),  # noqa: E501
          (
              "valid.%s",
              "InsuranceQA.question.anslabel.token.%s.pool.solr.valid.encoded.gz",
          ),  # noqa: E501
          (
              "test.%s",
              "InsuranceQA.question.anslabel.token.%s.pool.solr.test.encoded.gz",
          ),  # noqa: E501
      ]
      for n_cands in [100, 500, 1000, 1500]:
          for dtype_tmp, data_fname_tmp in data_fnames_tmpl:
              dtype = dtype_tmp % n_cands
              data_fname = data_fname_tmp % n_cands
              data_path = os.path.join(dpext, data_fname)
              cls.create_fb_format(
                  out_path, dtype, data_path, d_vocab, d_label_answer
              )
  
imports: from typing import Optional
  import gzip
  import os
  from parlai.core.build_data import DownloadableFile
  from parlai.utils.io import PathManager
  import parlai.core.build_data
label_desc: Use image node_id 1 for calling the ParseInsuranceQAV2 obj's underlying member method code with example usage: obj.write_data_files(cls, dpext, out_path, d_vocab, d_label_answer) without return types