docs: def rm_values_fields(x):
      """
      (Recursive) Remove all "values" fields from the metadata
  
      :param any x: Any data type
      :return dict x: Metadata (values removed)
      """
      if isinstance(x, dict):
          if "values" in x:
              del x["values"]
          else:
              for k, v in x.items():
                  if isinstance(v, dict):
                      rm_values_fields(v)
                  elif isinstance(v, list):
                      rm_values_fields(v)
      elif isinstance(x, list):
          for i in x:
              rm_values_fields(i)
  
      return x