class_docstr: Normalize rgb between 0 and 1
  
  Parameters
  ----------
  normalize: bool: Whether to normalize the rgb attributes
class_docstr_tok: ["Normalize","rgb","between","0","and","1","Parameters","--","--","--","--","--","normalize",":","bool",":","Whether","to","normalize","the","rgb","attributes"]
code: def __call__(self, data):
      assert hasattr(data, "rgb")
      if not (data.rgb.max() <= 1 and data.rgb.min() >= 0):
          data.rgb = data.rgb.float() / 255.0
      return data
  
imports: import random
  import torch
label_desc: Use image node_id 2 for calling the NormalizeRGB obj's underlying member method code with example usage: obj.__call__(data) and returns: data