code: def get_typ(self, refobj):
          
          enum = cmds.getAttr("%s.type" % refobj)
          try:
              return JB_ReftrackNode.types[enum]
          except IndexError:
              raise ValueError("The type on the node %s could not be associated with an available type: %s" %
                               (refobj, JB_ReftrackNode.types))
docs: Return the entity type of the given reftrack node
  
          See: :data:`MayaRefobjInterface.types`.
  
          :param refobj: the reftrack node to query
          :type refobj: str
          :returns: the entity type
          :rtype: str
          :raises: ValueError