I mean multi-label classification, i.e., multiple classes can be assigned to each sample. The code snippets you mentioned i have seen. Actually , i am learning Pytorch framework, i just need a more complete code , that is, given one example  dataset , the code has shown how to train the classifier and output the accuracy.