class_docstr: Run the test in Graph or Eager mode.
  
  The optional `mode` parameter controls the test's execution mode.  Its
  accepted values are "graph" or "eager" literals.
code: def context_managers(self, kwargs):
      mode = kwargs.pop("mode", None)
      if mode is None:
          return []
      elif mode == "eager":
          return [context.eager_mode()]
      elif mode == "graph":
          return [ops.Graph().as_default(), context.graph_mode()]
      else:
          raise ValueError(
              "Argument 'mode' must be either 'eager' or 'graph'. "
              f"Received: {mode}."
          )
  
file_path: tensorflow/tensorflow/python/framework/combinations.py
imports: import functools
  from tensorflow.python import tf2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_combinations
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 for calling the EagerGraphCombination obj's underlying member method code with example usage: obj.context_managers(kwargs) and returns: list, list, list