code: def _get_n(value: Union[list, pd.DataFrame]) -> Union[int, List[int]]:
      """Helper function to deal with multiple values"""
      if isinstance(value, list):
          n = [v.sum() for v in value]
      else:
          n = value.sum()
      return n
  
file_path: ydata-profiling/src/ydata_profiling/report/structure/variables/render_categorical.py
imports: from typing import List, Tuple, Union
  import pandas
  from ydata_profiling.config import Settings
  from ydata_profiling.report.formatters import fmt, fmt_bytesize, fmt_number, fmt_numeric, fmt_percent, help
  from ydata_profiling.report.presentation.core import HTML, Container, FrequencyTable, FrequencyTableSmall, Image, Table, VariableInfo
  from ydata_profiling.report.presentation.core.renderable import Renderable
  from ydata_profiling.report.presentation.frequency_table_utils import freq_table
  from ydata_profiling.report.structure.variables.render_common import render_common
  from ydata_profiling.visualisation.plot import cat_frequency_plot, histogram
label_desc: Use image node_id 3 for calling a global function with example usage: _get_n(value) and returns: n