code: def name_to_title(name: str) -> str:
      """Converts a camelCase or snake_case name to title case."""
      # If camelCase -> convert to snake case
      name = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name)
      name = re.sub("([a-z0-9])([A-Z])", r"\1_\2", name).lower()
      # Convert to title case
      return name.replace("_", " ").strip().title()
  
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 1 for calling a global function with example usage: name_to_title(name) and returns: name