code: def is_discrete(spec):
      return issubclass(np.dtype(spec).type, np.integer)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numbers
  import gin
  import numpy
  import tensorflow
label_desc: Use image node_id 7 for calling a global function with example usage: is_discrete(spec) and returns: issubclass