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 _compute(self):
      with self.session() as sess, self.device_scope():
          data = np.array([0], dtype=np.float32)
          indices = np.array([0], dtype=np.int32)
          d = array_ops.placeholder(data.dtype, shape=data.shape)
          i = array_ops.placeholder(indices.dtype, shape=indices.shape)
          sess.run(
              math_ops.segment_max_v2(data, indices, 1),
              {d: data, i: indices},
          )
  
file_path: tensorflow/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 1 for calling the XlaDumpToDirTest obj's underlying member method code with example usage: obj._compute() without return types