code: def is_v1_apis():
      return hasattr(tf, "assign")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: is_v1_apis() and returns: hasattr