code: def set_dtypes(chickweight):
      return chickweight.assign(
          diet=lambda d: d["diet"].astype("category"),
          chick=lambda d: d["chick"].astype("category"),
      )
  
file_path: scikit-lego/docs/_scripts/pandas-pipelines.py
imports: from pathlib import Path
  import pandas
  import logging
  from sklego.datasets import load_chicken
  from sklego.pandas_utils import log_step
  from sklego.pandas_utils import log_step_extra
label_desc: Use image node_id 1 for calling a global function with example usage: set_dtypes(chickweight) and returns: chickweight