code: def is_compatible_type(type: Type) -> bool:
      """Returns `True` if the type is opyrator-compatible."""
      try:
          if issubclass(type, BaseModel):
              return True
      except Exception:
          pass
  
      try:
          # valid list type
          if type.__origin__ is list and issubclass(
              type.__args__[0], BaseModel
          ):
              return True
      except Exception:
          pass
  
      return False
  
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 2 for calling a global function with example usage: is_compatible_type(type) and returns: False, True, True