code: def create_from_dict(data: dict, format_name: str, check_version: bool = True) -> Union[HistogramBase, HistogramCollection]:
      
      # Version
      if check_version:
          compatible_version = data["physt_compatible"]
          require_compatible_version(compatible_version, format_name)
  
      # Construction
      histogram_type = data["histogram_type"]
      if histogram_type == "histogram_collection":
          klass = HistogramCollection
      else:
          klass = find_subclass(HistogramBase, histogram_type)
      return klass.from_dict(data)
docs: Once dict from source data is created, turn this into histogram.
      
      Parameters
      ----------
      data : dict
          Parsed JSON-like tree.
  
      Returns
      -------
      histogram : HistogramBase
          A histogram (of any dimensionality)