code: def get_batch_strategy_instance(strategy, splitter):
      """Return an Instance of :class:`sagemaker.local.data.BatchStrategy` according to `strategy`
  
      Args:
          strategy (str): Either 'SingleRecord' or 'MultiRecord'
          splitter (:class:`sagemaker.local.data.Splitter): splitter to get the data from.
  
      Returns
          :class:`sagemaker.local.data.BatchStrategy`: an Instance of a BatchStrategy
      """
      if strategy == "SingleRecord":
          return SingleRecordStrategy(splitter)
      if strategy == "MultiRecord":
          return MultiRecordStrategy(splitter)
      raise ValueError(
          'Invalid Batch Strategy: %s - Valid Strategies: "SingleRecord", "MultiRecord"'
      )
  
imports: from __future__ import absolute_import
  import os
  import platform
  import sys
  import tempfile
  from abc import ABCMeta
  from abc import abstractmethod
  from six import with_metaclass
  from six.moves.urllib.parse import urlparse
  import sagemaker.amazon.common
  import sagemaker.local.utils
  import sagemaker.utils
label_desc: Use image node_id 3 for calling a global function with example usage: get_batch_strategy_instance(strategy, splitter) and returns: SingleRecordStrategy, MultiRecordStrategy