code: def make_data_creator(refs: Any) -> Callable:
      def data_creator(config, batch_size):
          return refs
  
      return data_creator
  
file_path: BigDL/python/orca/src/bigdl/orca/learn/tf2/estimator.py
imports: import logging
  import numpy
  from bigdl.orca.learn.utils import get_latest_checkpoint
  from bigdl.dllib.utils.log4Error import invalidInputError
  from typing import TYPE_CHECKING, Dict, Union, Callable, Optional, Any
label_desc: Use image node_id 1 for calling a global function with example usage: make_data_creator(refs) and returns: data_creator, refs