code: def __set_to_multihot__(input_set, classes):
      """
      Convert a set into a multi-hot vector based in classes.
  
      :param input_set: input set
      :type input_set: set
      :param classes: ordered labels of classes
      :type classes: list
      :return: multi-hot vector as a list
      """
      result = [0] * len(classes)
      for i, x in enumerate(classes):
          if x in input_set:
              result[i] = 1
      return result
  
file_path: pycm/pycm/pycm_multilabel_cm.py
imports: from __future__ import division
  from .pycm_error import pycmVectorError, pycmMultiLabelError
  from .pycm_param import *
  from .pycm_obj import ConfusionMatrix
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: __set_to_multihot__(input_set, classes) and returns: result