code: def is_number(x):
      if isinstance(x, tf.Tensor):
          return True
      try:
          float(x)
          return True
      except:
          return False
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: is_number(x) and returns: True, True, False