code: def get_logger():
      """Return a logger with the name 'sagemaker'"""
      sagemaker_logger = logging.getLogger("sagemaker.remote_function")
      if len(sagemaker_logger.handlers) == 0:
          sagemaker_logger.setLevel(logging.INFO)
          handler = logging.StreamHandler()
          formatter = _UTCFormatter(
              "%(asctime)s %(name)s %(levelname)-8s %(message)s"
          )
          handler.setFormatter(formatter)
          sagemaker_logger.addHandler(handler)
          # don't stream logs with the root logger handler
          sagemaker_logger.propagate = 0
  
      return sagemaker_logger
  
imports: from __future__ import absolute_import
  import logging
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: get_logger() and returns: sagemaker_logger