code: def _chunk_dataframe_groups(grouped, chunk_size):
      """chunks a grouped dataframe into groups no larger than chunk_size"""
      if isinstance(grouped, tuple):
          for i in range(0, len(grouped[1]), chunk_size):
              yield None, (
                  grouped[0],
                  grouped[1].iloc[i : i + chunk_size],
              )
      else:
          for group_key, group_df in grouped:
              for i in range(0, len(group_df), chunk_size):
                  yield group_key, group_df.iloc[i : i + chunk_size]
  
imports: import logging
  import math
  import os
  import shutil
  import time
  import warnings
  from datetime import datetime
  import cloudpickle
  import numpy
  import pandas
  from woodwork.logical_types import Age, AgeNullable, Boolean, BooleanNullable, Integer, IntegerNullable
  from featuretools.computational_backends.feature_set import FeatureSet
  from featuretools.computational_backends.feature_set_calculator import FeatureSetCalculator
  from featuretools.computational_backends.utils import _check_cutoff_time_type, _validate_cutoff_time, bin_cutoff_times, create_client_and_cluster, gather_approximate_features, gen_empty_approx_features_df, get_ww_types_from_features, save_csv_decorator
  from featuretools.entityset.relationship import RelationshipPath
  from featuretools.feature_base import AggregationFeature, FeatureBase
  from featuretools.utils import Trie
  from featuretools.utils.gen_utils import Library, import_or_none, import_or_raise, is_instance, make_tqdm_iterator
label_desc: Use image node_id 7 for calling a global function with example usage: _chunk_dataframe_groups(grouped, chunk_size) without return types