docs: def getMetadata(L):
      """
      Get metadata from a LiPD data in memory
  
      | Example
      | m = lipd.getMetadata(D["Africa-ColdAirCave.Sundqvist.2013"])
  
      :param dict L: One LiPD record
      :return dict d: LiPD record (metadata only)
      """
      _l = {}
      try:
          # Create a copy. Do not affect the original data.
          _l = copy.deepcopy(L)
          # Remove values fields
          _l = rm_values_fields(_l)
      except Exception as e:
          # Input likely not formatted correctly, though other problems can occur.
          print("Error: Unable to get data. Please check that input is LiPD data: {}".format(e))
      return _l