class_docstr: Add the code metadata to a `TensorMask`
class_docstr_tok: ["Add","the","code","metadata","to","a","`","TensorMask","`"]
code: def decodes(self, o: TensorMask):
      if self.codes is not None:
          o.codes = self.codes
      return o
  
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 2 for calling the AddMaskCodes obj's underlying member method code with example usage: obj.decodes(o) and returns: o