code: def _generate_delayed_return(
      function_step: _FunctionStep,
      type_hint,
      reference_path: tuple = (),
  ):
      """Generates a DelayedReturn object based on the type hint.
  
      Args:
          function_step: A sagemaker.workflow.step._FunctionStep instance.
          type_hint: A type hint of the function return.
          reference_path: A tuple that represents the path to the child member.
      """
  
      if (
          type_hint is tuple
          or get_origin(type_hint) is tuple
          or type_hint is list
          or get_origin(type_hint) is list
      ):
          return _DelayedSequence(function_step, reference_path)
  
      return DelayedReturn(function_step, reference_path)
  
imports: from __future__ import absolute_import
  import logging
  from functools import wraps
  from typing import Dict, List, Optional, Union, Callable, get_origin, get_type_hints, TYPE_CHECKING
  from sagemaker.workflow.functions import JsonGet, Join
  from sagemaker.workflow.entities import RequestType, PipelineVariable
  from sagemaker.workflow.execution_variables import ExecutionVariables
  from sagemaker.workflow.retry import RetryPolicy
  from sagemaker.workflow.steps import Step, ConfigurableRetryStep, StepTypeEnum
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.step_outputs import StepOutput
  from sagemaker.workflow.utilities import trim_request_dict, load_step_compilation_context
  from sagemaker.s3_utils import s3_path_join
  from sagemaker.utils import unique_name_from_base_uuid4, format_tags, Tags
label_desc: Use image node_id 1 for calling a global function with example usage: _generate_delayed_return(function_step, type_hint, reference_path) and returns: DelayedReturn, _DelayedSequence