class_docstr: Tests to verify correct import behavior for file executables.
class_docstr_tok: ["Tests","to","verify","correct","import","behavior","for","file","executables","."]
code: def setUp(self):
      super(MainModuleFileTest, self).setUp()
      self.file = tempfile.NamedTemporaryFile(
          suffix=".py"
      )  # pylint: disable=consider-using-with
      self.file.write(
          b"class Foo:\n  def double(self, n):\n    return 2 * n\n"
      )
      self.file.flush()
  
      self.file2 = tempfile.NamedTemporaryFile()
  
file_path: python-fire/fire/main_test.py
imports: import os
  import tempfile
  from fire import __main__
  from fire import testutils
label_desc: Use image node_id 1 for calling the MainModuleFileTest obj's underlying member method code with example usage: obj.setUp() without return types