code: def _value_to_matcher(value, add_quotes=False):
      """Returns a matcher for the value - used for debugging failures."""
      if isinstance(value, tf.Operation):
          return _OpMatcher(str(value.node_def.name))
      if isinstance(value, tf.Tensor):
          return _TensorMatcher(str(value.name))
      if isinstance(value, (str, bytes)):
          if add_quotes:
              return "'{}'".format(value)
          else:
              return value
      raise ValueError(
          "Cannot get a matcher for: {}, {}".format(type(value), value)
      )
  
imports: import abc
  import os
  import tempfile
  import tensorflow
  from tensorflow_transform import graph_tools
  from tensorflow_transform import test_case
  from tfx_bsl.types import tfx_namedtuple
  from tensorflow.python.ops import control_flow_ops
label_desc: Use image node_id 20 for calling a global function with example usage: _value_to_matcher(value, add_quotes) and returns: _OpMatcher, _TensorMatcher, str, value