class_docstr: Module stitches histograms by date
docstr: Find the maximum time-bin index in dict of basis histograms
  
  :param hists_basis: dict of basis histograms
  :param features_basis: list of features to look at
  :param time_axis: name of time-axis
  :return: maximum time-bin index found or None
docstr_tok: ["Find","the","maximum","time-bin","index","in","dict","of","basis","histograms",":","param","hists_basis",":","dict","of","basis","histograms",":","param","features_basis",":","list","of","features","to","look","at",":","param","time_axis",":","name","of","time-axis",":","return",":","maximum","time-bin","index","found","or","None"]
code: def _find_max_time_bin_index(
      self, hists_basis, features_basis, time_axis
  ):
      """Find the maximum time-bin index in dict of basis histograms
  
      :param hists_basis: dict of basis histograms
      :param features_basis: list of features to look at
      :param time_axis: name of time-axis
      :return: maximum time-bin index found or None
      """
      # basic checks
      assert isinstance(time_axis, str) and len(time_axis) > 0
      assert len(features_basis) > 0
      assert all(f.startswith(time_axis) for f in features_basis)
  
      hist_list = list(hists_basis.values())
  
      all_sparse = all(isinstance(h, hg.SparselyBin) for h in hist_list)
      all_cat = not all_sparse and all(
          isinstance(h, hg.Categorize) for h in hist_list
      )
  
      max_time_bin_idx = None
      if all_sparse or all_cat:
          max_time_bin_idx = max(
              max(h.bins.keys()) for h in hist_list if len(h.bins) > 0
          )
      return max_time_bin_idx
  
file_path: popmon/popmon/stitching/hist_stitcher.py
imports: import histogrammar
  import numpy
  from popmon.analysis.hist_numpy import assert_similar_hists
  from popmon.base import Module
label_desc: Use image node_id 5 for calling the HistStitcher obj's underlying member method code with example usage: obj._find_max_time_bin_index(hists_basis, features_basis, time_axis) and returns: max_time_bin_idx