code: def tf_prof():
      err_if_tf2(msg="err")
      from tensorflow.contrib import (
          tfprof as contrib_tfprof,
      )  # pylint: disable=g-direct-tensorflow-import,g-import-not-at-top
  
      return contrib_tfprof
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl import logging
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 21 for calling a global function with example usage: tf_prof() and returns: contrib_tfprof