parameters: (descr, names=None)
return_statement: return np.dtype(ndescr)
docstring: Checks that the field names of the descriptor ``descr`` are not some
  reserved keywords. If this is the case, a default 'f%i' is substituted.
  If the argument `names` is not None, updates the field names to valid names.
docstring_summary: Checks that the field names of the descriptor ``descr`` are not some
  reserved keywords. If this is the case, a default 'f%i' is substituted.
  If the argument `names` is not None, updates the field names to valid names.
docstring_tokens: Checks that the field names of the descriptor descr are not some reserved keywords . If this is the case a default f%i is substituted . If the argument names is not None updates the field names to valid names .
function: def _checknames(descr, names=None):
      """Checks that the field names of the descriptor ``descr`` are not some
  reserved keywords. If this is the case, a default 'f%i' is substituted.
  If the argument `names` is not None, updates the field names to valid names.
      """
      ndescr = len(descr)
      default_names = ['f%i' % i for i in range(ndescr)]
      if names is None:
          new_names = default_names
      else:
          if isinstance(names, (tuple, list)):
              new_names = names
          elif isinstance(names, str):
              new_names = names.split(',')
          else:
              raise NameError("illegal input names %s" % `names`)
          nnames = len(new_names)
          if nnames < ndescr:
              new_names += default_names[nnames:]
      ndescr = []
      for (n, d, t) in zip(new_names, default_names, descr.descr):
          if n in reserved_fields:
              if t[0] in reserved_fields:
                  ndescr.append((d, t[1]))
              else:
                  ndescr.append(t)
          else:
              ndescr.append((n, t[1]))
      return np.dtype(ndescr)
function_tokens: def _checknames ( descr , names = None ) : ndescr = len ( descr ) default_names = [ 'f%i' % i for i in range ( ndescr ) ] if names is None : new_names = default_names else : if isinstance ( names , ( tuple , list ) ) : new_names = names elif isinstance ( names , str ) : new_names = names . split ( ',' ) else : raise NameError ( "illegal input names %s" % `names` ) nnames = len ( new_names ) if nnames < ndescr : new_names += default_names [ nnames : ] ndescr = [ ] for ( n , d , t ) in zip ( new_names , default_names , descr . descr ) : if n in reserved_fields : if t [ 0 ] in reserved_fields : ndescr . append ( ( d , t [ 1 ] ) ) else : ndescr . append ( t ) else : ndescr . append ( ( n , t [ 1 ] ) ) return np . dtype ( ndescr )