code: def compute_col_types(
      df_all: Optional[pd.DataFrame],
  ) -> Optional[dict]:
      """
      Computes the type of each column and stores the result in a dict.
  
      Parameters
      ----------
      df_all : pd.DataFrame, optional
  
      Returns
      -------
      col_types : dict
          The types of each column
      """
      if df_all is None:
          return {}
      return {col: series_dtype(df_all[col]) for col in df_all.columns}
  
file_path: shapash/shapash/report/common.py
imports: from typing import Union, Optional
  from enum import Enum
  from numbers import Number
  import pandas
  import os
  from pandas.api.types import is_string_dtype, is_numeric_dtype, is_bool_dtype
label_desc: Use image node_id 3 for calling a global function with example usage: compute_col_types(df_all) and returns: unknown, dict