class_docstr: Converts indices to a mask representation
  (functional name: :obj:`index_to_mask`).
  
  Args:
      attrs (str, [str], optional): If given, will only perform index to mask
          conversion for the given attributes. If omitted, will infer the
          attributes from the suffix :obj:`_index`. (default: :obj:`None`)
      sizes (int, [int], optional): The size of the mask. If set to
          :obj:`None`, an automatically sized tensor is returned. The number
          of nodes will be used by default, except for edge attributes which
          will use the number of edges as the mask size.
          (default: :obj:`None`)
      replace (bool, optional): if set to :obj:`True` replaces the index
          attributes with mask tensors. (default: :obj:`False`)
class_docstr_tok: ["Converts","indices","to","a","mask","representation","(","functional","name",":",":","obj",":","`","index_to_mask","`",")",".","Args",":","attrs","(","str",",","[","str","]",",","optional",")",":","If","given",",","will","only","perform","index","to","mask","conversion","for","the","given","attributes",".","If","omitted",",","will","infer","the","attributes","from","the","suffix",":","obj",":","`","_index","`",".","(","default",":",":","obj",":","`","None","`",")","sizes","(","int",",","[","int","]",",","optional",")",":","The","size","of","the","mask",".","If","set","to",":","obj",":","`","None","`",",","an","automatically","sized","tensor","is","returned",".","The","number","of","nodes","will","be","used","by","default",",","except","for","edge","attributes","which","will","use","the","number","of","edges","as","the","mask","size",".","(","default",":",":","obj",":","`","None","`",")","replace","(","bool",",","optional",")",":","if","set","to",":","obj",":","`","True","`","replaces","the","index","attributes","with","mask","tensors",".","(","default",":",":","obj",":","`","False","`",")"]
code: def __repr__(self) -> str:
      return (
          f"{self.__class__.__name__}(attrs={self.attrs}, "
          f"sizes={self.sizes}, replace={self.replace})"
      )
  
file_path: pytorch_geometric/torch_geometric/transforms/mask.py
imports: from typing import List, Optional, Sequence, Union
  from torch_geometric.data import Data, HeteroData
  from torch_geometric.data.datapipes import functional_transform
  from torch_geometric.data.storage import BaseStorage
  from torch_geometric.transforms import BaseTransform
  from torch_geometric.utils import index_to_mask, mask_to_index
label_desc: Use image node_id 3 for calling the IndexToMask obj's underlying member method code with example usage: obj.__repr__() and returns: self, str, self, str, self, str, self, str