code: def has_nested_fields(ndtype):
      """
      Returns whether one or several fields of a dtype are nested.
  
      Parameters
      ----------
      ndtype : dtype
          Data-type of a structured array.
  
      Raises
      ------
      AttributeError
          If `ndtype` does not have a `names` attribute.
  
      Examples
      --------
      >>> dt = np.dtype([('name', 'S4'), ('x', float), ('y', float)])
      >>> np.lib._iotools.has_nested_fields(dt)
      False
  
      """
      for name in ndtype.names or ():
          if ndtype[name].names is not None:
              return True
      return False
  
imports: import numpy
  import numpy._core.numeric
  from numpy._utils import asbytes, asunicode
label_desc: Use image node_id 4 for calling a global function with example usage: has_nested_fields(ndtype) and returns: False, True