code: def instantiate_transform(transform, params):
      # https://github.com/omry/omegaconf/issues/248
      transform_params = OmegaConf.to_container(params)
      # If a dict, it will be passed as **kwargs, else a list is *args
      if isinstance(transform_params, collections.abc.Mapping):
          return transform(**transform_params)
      return transform(*transform_params)
  
imports: import collections
  import importlib
  import logging
  import random
  import mmf.datasets.processors.functional
  import torch
  from mmf.common.registry import registry
  from mmf.datasets.processors import BaseProcessor
  from omegaconf import OmegaConf
  from torchvision import transforms
label_desc: Use image node_id 3 for calling the VideoTransforms obj's underlying member method code with example usage: obj.instantiate_transform(transform, params) and returns: transform, transform