code: def _npy2fits(d, table_type='binary', write_bitcols=False):
      
      npy_dtype = d[1][1:]
      if npy_dtype[0] == 'S' or npy_dtype[0] == 'U':
          name, form, dim = _npy_string2fits(d, table_type=table_type)
      else:
          name, form, dim = _npy_num2fits(
              d, table_type=table_type, write_bitcols=write_bitcols)
  
      return name, form, dim
docs: d is the full element from the descr