code: def _handle_chunk_size(chunk_size, total_size):
      if chunk_size is not None:
          assert chunk_size > 0, "Chunk size must be greater than 0"
  
          if chunk_size < 1:
              chunk_size = math.ceil(chunk_size * total_size)
  
          chunk_size = int(chunk_size)
  
      return 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 8 for calling a global function with example usage: _handle_chunk_size(chunk_size, total_size) and returns: chunk_size