code: def kent_mean(dec=None, inc=None, di_block=None):
      
      if di_block is None:
          di_block = make_di_block(dec, inc)
          return pmag.dokent(di_block, len(di_block))
      else:
          return pmag.dokent(di_block, len(di_block))
docs: Calculates the Kent mean and associated statistical parameters from either a list of
      declination values and a separate list of inclination values or from a
      di_block (a nested list a nested list of [dec,inc,1.0]). Returns a
      dictionary with the Kent mean and statistical parameters.
  
      Parameters
      ----------
      dec: list of declinations
      inc: list of inclinations
  
      or
  
      di_block: a nested list of [dec,inc,1.0]
  
      A di_block can be provided instead of dec, inc lists in which case it will
      be used. Either dec, inc lists or a di_block need to passed to the function.
  
      Returns
      ----------
      kpars : dictionary containing Kent mean and associated statistics.
  
      Examples
      --------
      Use lists of declination and inclination to calculate a Kent mean:
  
      >>> ipmag.kent_mean(dec=[140,127,142,136],inc=[21,23,19,22])
      {'Edec': 280.38683553668795,
       'Einc': 64.236598921744289,
       'Eta': 0.72982112760919715,
       'Zdec': 40.824690028412761,
       'Zeta': 6.7896823241008795,
       'Zinc': 13.739412321974067,
       'dec': 136.30838974272072,
       'inc': 21.347784026899987,
       'n': 4}
  
      Use a di_block to calculate a Kent mean (will give the same output as the
      example with the lists):
  
      >>> ipmag.kent_mean(di_block=[[140,21],[127,23],[142,19],[136,22]])