class_docstr: Convenience wrapper around :func:`vindex`.
  
  The following are equivalent::
  
      Vindex(x)[..., i, j, :]
      vindex(x, (Ellipsis, i, j, slice(None)))
  
  :param torch.Tensor tensor: A tensor to be indexed.
  :return: An object with a special :meth:`__getitem__` method.
class_docstr_tok: ["Convenience","wrapper","around",":","func",":","`","vindex","`",".","The","following","are","equivalent",":",":","Vindex","(","x",")","[","...",",","i",",","j",",",":","]","vindex","(","x",",","(","Ellipsis",",","i",",","j",",","slice","(","None",")",")",")",":","param","torch.Tensor","tensor",":","A","tensor","to","be","indexed",".",":","return",":","An","object","with","a","special",":","meth",":","`","__getitem__","`","method","."]
code: def __getitem__(self, args):
      return vindex(self._tensor, args)
  
file_path: pyro/pyro/ops/indexing.py
imports: import torch
label_desc: Use image node_id 2 for calling the Vindex obj's underlying member method code with example usage: obj.__getitem__(args) and returns: vindex