code: def register_plugin(registrable: Any, alias: str = None):
      """
      Register a class, a function or a method to REGISTRY
      Args:
          registrable:
          alias:
      Returns:
      """
      alias = alias or registrable.__name__
  
      if alias in REGISTRY:
          raise ValueError(
              f"{alias} is already registered to registrable {REGISTRY[alias]}. Please select another name"
          )
  
      REGISTRY[alias] = registrable
      return registrable
  
imports: import logging
  import os
  import traceback
  from abc import ABCMeta, abstractmethod
  from pathlib import Path
  from typing import Any, Callable, Dict, List, Mapping, Type, Union
  import toml
  import yaml
label_desc: Use image node_id 1 for calling a global function with example usage: register_plugin(registrable, alias) and returns: registrable