code: def register(cls, interface):
      cls.interfaces[interface.datatype] = interface
  
imports: import sys
  import warnings
  import numpy
  import param
  from ..None import util
  from ..element import Element
  from ..ndmapping import NdMapping
  from .util import finite_range
label_desc: Use image node_id 3 for calling the Interface obj's underlying member method code with example usage: obj.register(cls, interface) without return types