code: def set_session_config(enable_eager=False, enable_xla=False):
      """Sets the session config."""
      if is_v2_0():
          set_config_v2(enable_xla=enable_xla)
      else:
          config = get_config_proto_v1(enable_xla=enable_xla)
          if enable_eager:
              tf.compat.v1.enable_eager_execution(config=config)
          else:
              sess = tf.Session(config=config)
              tf.keras.backend.set_session(sess)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import time
  import tensorflow
  from tensorflow.core.protobuf import rewriter_config_pb2
  from tensorflow.python import tf2
  from tensorflow.python.eager import profiler
label_desc: Use image node_id 2 for calling a global function with example usage: set_session_config(enable_eager, enable_xla) without return types