code: def __call__(self, input: Any, **kwargs: Any) -> Any:
      input_obj = input
  
      if isinstance(input, str):
          # Allow json input
          input_obj = parse_raw_as(self.input_type, input)
  
      if isinstance(input, dict):
          # Allow dict input
          input_obj = parse_obj_as(self.input_type, input)
  
      return self.function(input_obj, **kwargs)
  
file_path: opyrator/src/opyrator/core.py
imports: import importlib
  import inspect
  import re
  from typing import Any, Callable, Type, Union, get_type_hints
  from pydantic import BaseModel, parse_raw_as
  from pydantic.tools import parse_obj_as
label_desc: Use image node_id 6 for calling the Opyrator obj's underlying member method code with example usage: obj.__call__(input) and returns: self