code: def tf_execution_context(run_eagerly):
      if run_eagerly:
          return EagerExecutionContext()
      return GraphExecutionContext()
  
file_path: tf-encrypted/primitives/tf_encrypted/test/execution_context.py
imports: import contextlib
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: tf_execution_context(run_eagerly) and returns: GraphExecutionContext, EagerExecutionContext