code: def __configure_worker_and_device_collate_fn(
      running_stage: RunningStage, input_transform: InputTransform
  ) -> Tuple[Callable, Callable]:
      transform_for_stage: _InputTransformPerStage = (
          input_transform._transform[running_stage]
      )
  
      worker_collate_fn, device_collate_fn = __make_collates(
          input_transform,
          not transform_for_stage.collate_in_worker,
          input_transform._collate,
      )
  
      return worker_collate_fn, device_collate_fn
  
imports: import inspect
  from dataclasses import dataclass
  from functools import partial
  from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple
  from pytorch_lightning.utilities import rank_zero_warn
  from pytorch_lightning.utilities.enums import LightningEnum
  from flash.core.data.callback import ControlFlow
  from flash.core.data.utilities.collate import default_collate
  from flash.core.data.utils import _STAGES_PREFIX
  from flash.core.utilities.stages import RunningStage
  from flash.core.utilities.types import INPUT_TRANSFORM_TYPE
label_desc: Use image node_id 3 for calling a global function with example usage: __configure_worker_and_device_collate_fn(running_stage, input_transform) and returns: worker_collate_fn,  device_collate_fn