code: def to_batches(
      df: pd.DataFrame, batch_size: int
  ) -> List[pd.DataFrame]:
      return [
          df[i : i + batch_size].copy()
          for i in range(0, df.shape[0], batch_size)
      ]
  
file_path: ludwig/ludwig/utils/dataframe_utils.py
imports: from typing import Dict, List, Optional, Tuple
  import numpy
  import pandas
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.constants import DASK_MODULE_NAME
  from ludwig.data.dataframe.base import DataFrameEngine
  from ludwig.utils.types import DataFrame
label_desc: Use image node_id 9 for calling a global function with example usage: to_batches(df, batch_size) and returns: unknown