class_docstr: Add random color to the image, data must contain an rgb attribute between 0 and 1
  
  Parameters
  ----------
  trans_range_ratio:
      ratio of translation i.e. tramnslation = 2 * ratio * rand(-0.5, 0.5) (default: 1e-1)
class_docstr_tok: ["Add","random","color","to","the","image",",","data","must","contain","an","rgb","attribute","between","0","and","1","Parameters","--","--","--","--","--","trans_range_ratio",":","ratio","of","translation","i.e",".","tramnslation","=","2","*","ratio","*","rand","(","-0.5",",","0.5",")","(","default",":","1e-1",")"]
code: def __call__(self, data):
      assert hasattr(data, "rgb")
      assert data.rgb.max() <= 1 and data.rgb.min() >= 0
      if random.random() < 0.95:
          tr = (torch.rand(1, 3) - 0.5) * 2 * self.trans_range_ratio
          data.rgb = torch.clamp(tr + data.rgb, 0, 1)
      return data
  
imports: import random
  import torch
label_desc: Use image node_id 2 for calling the ChromaticTranslation obj's underlying member method code with example usage: obj.__call__(data) and returns: data