code: def prepare_item(self, item_metadata: Any) -> Any:  # type: ignore
      if isinstance(self._fn, FunctionType):
          if inspect.isgeneratorfunction(self._fn):
              yield from self._fn(item_metadata)
          else:
              yield self._fn(item_metadata)
      elif callable(self._fn):
          if inspect.isgeneratorfunction(self._fn.__call__):  # type: ignore
              yield from self._fn.__call__(item_metadata)  # type: ignore
          else:
              yield self._fn.__call__(item_metadata)  # type: ignore
      else:
          raise ValueError(f"The provided {self._fn} isn't supported.")
  
imports: import inspect
  import os
  from datetime import datetime
  from pathlib import Path
  from types import FunctionType
  from typing import Any, Callable, Dict, Optional, Sequence, Union
  import torch
  from lightning.data.streaming.constants import _LIGHTNING_CLOUD_LATEST, _TORCH_GREATER_EQUAL_2_1_0
  from lightning.data.streaming.data_processor import DataChunkRecipe, DataProcessor, DataTransformRecipe
label_desc: Use image node_id 3 for calling the LambdaDataChunkRecipe obj's underlying member method code with example usage: obj.prepare_item(item_metadata) without return types