code: def _check_target_array(self, y, allowed=None):
      if not isinstance(y[0], (float, np.float_)):
          raise AttributeError(
              "y must be a float array.\nFound %s" % y.dtype
          )
  
imports: from time import time
  import numpy
label_desc: Use image node_id 2 for calling the _Regressor obj's underlying member method code with example usage: obj._check_target_array(y, allowed) without return types