code: def register_interaction(key=None):
      def wrap(interaction):
          name = (
              key
              if key is not None
              else interaction.__module__ + interaction.__name__
          )
          interaction.types[name] = interaction
          return interaction
  
      return wrap
  
imports: from traitlets import Bool, Int, Float, Unicode, Dict, Instance, List, Enum, observe
  from traittypes import Array
  from ipywidgets import Widget, Color, widget_serialization, register
  from bqscales import Scale
  from .traits import Date, array_serialization, _array_equal
  from .marks import Lines
  from ._version import __frontend_version__
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: register_interaction(key) and returns: wrap, interaction