def dtype_info_name(dtype):
 dtype = np.dtype(dtype)
 if (dtype.kind in ('S', 'U')):
  length = re.search('(\\d+)', dtype.str).group(1)
  type_name = STRING_TYPE_NAMES[((not six.PY2), dtype.kind)]
  out = (type_name + length)
 else:
  out = dtype.name
 return out

def dtype_info_name ( dtype ) : dtype = np . dtype ( dtype ) if ( dtype . kind in ( 'S' , 'U' ) ) : length = re . search ( '(\\d+)' , dtype . str ) . group ( 1 ) type_name = STRING_TYPE_NAMES [ ( ( not six . PY2 ) , dtype . kind ) ] out = ( type_name + length ) else : out = dtype . name return out
return a human-oriented string name of the dtype arg .