docs: def strip_leading_underscores_from_keys(d: Dict) -> Dict:
      """
      Clones a dictionary, removing leading underscores from key names.
      Raises ``ValueError`` if this causes an attribute conflict.
      """
      newdict = {}
      for k, v in d.items():
          if k.startswith('_'):
              k = k[1:]
              if k in newdict:
                  raise ValueError("Attribute conflict: _{k}, {k}".format(k=k))
          newdict[k] = v
      return newdict