docs: def from_dict(cls, a_dict: Mapping[str, Any]) -> "HistogramBase":
          """Create an instance from a dictionary.
  
          If customization is necessary, override the _from_dict_kwargs
          template method, not this one.
          """
          kwargs = cls._kwargs_from_dict(a_dict)
          return cls(**kwargs)