code: def register_backend(name, backend_cls):
      """Create the backend instance and add it to the registry.
  
      Args:
          name (str): Name of the backend.
          backend_cls (class): Backend class to instantiate. Class must implement a constructor without parameters.
  
      Raises:
          Exception: If the backend has already been registered.
      """
      if name.lower() in backend_map:
          raise Exception(f"Backend {name} already registered")
  
      backend_map[name.lower()] = backend_cls()
  
imports: import inspect
  import os
  from pathlib import Path
  from hls4ml.backends.template import Template
  from hls4ml.model.flow import get_backend_flows, update_flow
  from hls4ml.model.optimizer import LayerOptimizerPass, extract_optimizers_from_object, extract_optimizers_from_path, get_backend_passes, get_optimizer, register_pass
label_desc: Use image node_id 1 for calling a global function with example usage: register_backend(name, backend_cls) without return types