class_docstr: Add the code metadata to a `TensorMask`
class_docstr_tok: ["Add","the","code","metadata","to","a","`","TensorMask","`"]
code: def __init__(self, codes=None):
      self.codes = codes
      if codes is not None:
          self.vocab, self.c = codes, len(codes)
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  from PIL import Image
  from matplotlib import patches, patheffects
label_desc: Use image node_id 1 to create a new AddMaskCodes object from inherited base classes: Transform with example: obj = AddMaskCodes(codes)