docs: def validate_dict(d):
      """Validate a dictionary
  
      Parameters
      ----------
      d: dict or str
          If str, it must be a path to a yaml file
  
      Returns
      -------
      dict
  
      Raises
      ------
      ValueError"""
      try:
          return dict(d)
      except TypeError:
          d = validate_path_exists(d)
          try:
              with open(d) as f:
                  return dict(yaml.load(f))
          except Exception:
              raise ValueError("Could not convert {} to dictionary!".format(d))