class_docstr: Class that collects and stores information and statistics on issues found in a dataset.
  
  Parameters
  ----------
  data :
      The data object for which the issues are being collected.
  strategy :
      Strategy used for processing info dictionaries.
  
  Attributes
  ----------
  issues : pd.DataFrame
      Stores information about each individual issue found in the data,
      on a per-example basis.
  issue_summary : pd.DataFrame
      Summarizes the overall statistics for each issue type.
  info : dict
      A dictionary that contains information and statistics about the data and each issue type.
docstr: Update the statistics in the info dictionary.
  
  Parameters
  ----------
  statistics :
      A dictionary of statistics to add/update in the info dictionary.
  
  Examples
  --------
  
  A common use case is to reuse the KNN-graph across multiple issue managers.
  To avoid recomputing the KNN-graph for each issue manager,
  we can pass it as a statistic to the issue managers.
  
  >>> from scipy.sparse import csr_matrix
  >>> weighted_knn_graph = csr_matrix(...)
  >>> issue_manager_that_computes_knn_graph = ...
docstr_tok: ["Update","the","statistics","in","the","info","dictionary",".","Parameters","--","--","--","--","--","statistics",":","A","dictionary","of","statistics","to","add\/update","in","the","info","dictionary",".","Examples","--","--","--","--","A","common","use","case","is","to","reuse","the","KNN-graph","across","multiple","issue","managers",".","To","avoid","recomputing","the","KNN-graph","for","each","issue","manager",",","we","can","pass","it","as","a","statistic","to","the","issue","managers",".",">",">",">","from","scipy.sparse","import","csr_matrix",">",">",">","weighted_knn_graph","=","csr_matrix","(","...",")",">",">",">","issue_manager_that_computes_knn_graph","=","..."]
code: def collect_statistics(
      self, issue_manager: Union[IssueManager, "Imagelab"]
  ) -> None:
      """Update the statistics in the info dictionary.
  
      Parameters
      ----------
      statistics :
          A dictionary of statistics to add/update in the info dictionary.
  
      Examples
      --------
  
      A common use case is to reuse the KNN-graph across multiple issue managers.
      To avoid recomputing the KNN-graph for each issue manager,
      we can pass it as a statistic to the issue managers.
  
      >>> from scipy.sparse import csr_matrix
      >>> weighted_knn_graph = csr_matrix(...)
      >>> issue_manager_that_computes_knn_graph = ...
  
      """
      key = "statistics"
      statistics: Dict[str, Any] = issue_manager.info.get(key, {})
      if statistics:
          self.info[key].update(statistics)
  
imports: from __future__ import annotations
  import warnings
  from abc import ABC, abstractmethod
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
  import numpy
  import pandas
label_desc: Use image node_id 6 for calling the DataIssues obj's underlying member method code with example usage: obj.collect_statistics(issue_manager) without return types