code: def testXlaCustomCallOpDoesntExist(self):
      with ops.device("device:{}:0".format(self.device)):
  
          def f():
              return xla.custom_call(
                  args=(1, 2),
                  target_name="my_non_existing_call_target",
                  dtype=dtypes.int32,
                  shape=(),
                  backend_config="my_backend_config",
              )
  
          with self.assertRaises(errors_impl.InvalidArgumentError):
              compiled_f = def_function.function(f, jit_compile=True)
              compiled_f()
  
file_path: tensorflow-upstream/tensorflow/compiler/tests/xla_custom_call_ops_test.py
imports: from tensorflow.compiler.tests import xla_test
  from tensorflow.compiler.tf2xla.python import xla
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.ops import random_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the XlaCustomCallOpTest obj's underlying member method code with example usage: obj.testXlaCustomCallOpDoesntExist() and returns: xla