code: def create_object(spec: ObjectSpec):
      """Create the actual object given the `spec`."""
      # Adapted from https://stackoverflow.com/questions/547829/how-to-dynamically-load-a-python-class
      components = spec.class_name.split(".")
      module: Any = __import__(components[0])
      for component in components[1:]:
          module = getattr(module, component)
      return module(**spec.args)
  
imports: from dataclasses import dataclass
  from typing import Any, Dict, Tuple
label_desc: Use image node_id 1 for calling a global function with example usage: create_object(spec) and returns: module