class_docstr: Basic tests on the build_data.py download_multiprocess.
class_docstr_tok: ["Basic","tests","on","the","build_data.py","download_multiprocess","."]
code: def setUp(self):
      self.datapath = ParlaiParser().parse_args([])["datapath"]
      self.datapath = os.path.join(self.datapath, "build_data_pyt_data")
      PathManager.mkdirs(self.datapath)
  
      for d in self.dest_filenames:
          # Removing files if they are already there b/c otherwise it won't try to download them again
          try:
              PathManager.rm(os.path.join(self.datapath, d))
          except OSError:
              pass
  
imports: import os
  import pytest
  from parlai.core import build_data
  import unittest
  import unittest.mock
  import requests
  import parlai.utils.testing
  import multiprocessing
  from parlai.utils.io import PathManager
  from parlai.core.params import ParlaiParser
label_desc: Use image node_id 1 for calling the TestBuildData obj's underlying member method code with example usage: obj.setUp() without return types