code: def add_type(cls, typ):
          
          if not isinstance(typ, basestring):
              raise TypeError("The type should be a string. But is %s" % type(typ))
          cls.types.append(typ)
docs: Register a type for jb_reftrack nodes.
  
          A type specifies how the reference should be handled. For example the type shader will connect shaders
          with the parent when it the shaders are loaded.
          Default types are :data:`JB_ReftrackNode.types`.
  
          .. Note:: You have to add types before you initialize the plugin!
  
          :param typ: a new type specifier, e.g. \"asset\"
          :type typ: str
          :returns: None
          :rtype: None
          :raises: :class:`TypeError`