code: def array_has_real_numbers(array):
      
      kind = array.dtype.kind
      assert kind in 'biufcmMOSUV', "Unexpected array kind: {}".format(kind)
      return kind in 'iuf'
docs: Uses the dtype kind of the numpy array to determine if it represents real numbers.
  
          That is, the array kind should be one of: i u f
  
          Possible dtype.kind values.
              b 	boolean
              i 	signed integer
              u 	unsigned integer
              f 	floating-point
              c 	complex floating-point
              m 	timedelta
              M 	datetime
              O 	object
              S 	(byte-)string
              U 	Unicode
              V 	void