class_docstr: XLA test cases are parameterized test cases.
class_docstr_tok: ["XLA","test","cases","are","parameterized","test","cases","."]
docstr: Scope that runs tests on `self.device`.
  
  Yields:
    A scope to apply to the operators under test.
code: def device_scope(self):
      """Scope that runs tests on `self.device`.
  
      Yields:
        A scope to apply to the operators under test.
      """
      with ops.device("device:{}:0".format(self.device)):
          yield
  
imports: from collections.abc import Iterator
  import contextlib
  import os
  import random
  import re
  import numpy
  from tensorflow.core.framework import types_pb2
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.core.protobuf import rewriter_config_pb2
  from tensorflow.python.client import session
  from tensorflow.python.compiler.xla import jit
  from tensorflow.python.eager import context
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import flags
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 14 for calling the XLATestCase obj's underlying member method code with example usage: obj.device_scope() without return types