code: def chunk_data(df: pd.DataFrame, n_chunks: int) -> List[pd.DataFrame]:
      """
      Chunk dataframe into multiple smaller dataframes
  
      Args:
          df: Input dataframe
          n_chunks: Number of chunks
  
      Yields:
          Dataframe chunk
      """
      k = int(np.ceil(df.shape[0] / n_chunks))
  
      for i in range(n_chunks):
          yield df.iloc[i * k : (i + 1) * k]
  
imports: from typing import AnyStr, Dict, List, Set, Union
  import numpy
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: chunk_data(df, n_chunks) without return types