class_docstr: Test that ensures --XLA_FLAGS=--dump_to_xla=<dir> produces output.
class_docstr_tok: ["Test","that","ensures","--","XLA_FLAGS=","--","dump_to_xla=","<","dir",">","produces","output","."]
code: def testDumpToTempDir(self):
      tmp_dir = self.create_tempdir().full_path
      os.environ["XLA_FLAGS"] = "--xla_dump_to=" + tmp_dir
      self._compute()
      self.assertNotEmpty(glob.glob(os.path.join(tmp_dir, "module_0*")))
  
file_path: tensorflow-upstream/tensorflow/compiler/tests/xla_dump_to_test.py
imports: import glob
  import os
  import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 2 for calling the XlaDumpToDirTest obj's underlying member method code with example usage: obj.testDumpToTempDir() without return types