code: def __resolve_transforms(
      self, running_stage: RunningStage
  ) -> Optional[Dict[str, Callable]]:
      transforms = {}
      stage = _STAGES_PREFIX[running_stage]
  
      # iterate over all transforms hook name
      for transform_name in InputTransformPlacement:
          transform_name = transform_name.value
  
          method_name = f"{stage}_{transform_name}"
  
          # get associated transform
          try:
              fn = getattr(self, method_name)()
          except AttributeError as e:
              raise AttributeError(
                  str(e)
                  + ". Make sure you include a call to super().__init__(...) in your __init__ after setting "
                  "all attributes."
              )
  
          if fn is None:
              continue
  
          if not callable(fn):
              raise TypeError(
                  f"The hook {method_name} should return a callable."
              )
  
          transforms[transform_name] = fn
  
      return transforms
  
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 40 for calling the InputTransform obj's underlying member method code with example usage: obj.__resolve_transforms(running_stage) and returns: transforms