code: def _tf2_callback():
      global choose_from_datasets, sample_from_datasets
      if tf2.enabled():
          choose_from_datasets = choose_from_datasets_v2
          sample_from_datasets = sample_from_datasets_v2
      else:
          choose_from_datasets = choose_from_datasets_v1
          sample_from_datasets = sample_from_datasets_v1
  
file_path: tensorflow-upstream/tensorflow/python/data/experimental/ops/interleave_ops.py
imports: from tensorflow.python import tf2
  from tensorflow.python.compat import v2_compat
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import readers
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 6 for calling a global function with example usage: _tf2_callback() without return types