class_docstr: 'ShapeNetBase' implements a base Dataset for ShapeNet and R2N2 with helper methods.
  It is not intended to be used on its own as a Dataset for a Dataloader. Both __init__
  and __getitem__ need to be implemented.
class_docstr_tok: ["'ShapeNetBase","'","implements","a","base","Dataset","for","ShapeNet","and","R2N2","with","helper","methods",".","It","is","not","intended","to","be","used","on","its","own","as","a","Dataset","for","a","Dataloader",".","Both","__init__","and","__getitem__","need","to","be","implemented","."]
docstr: Read a model by the given index.
  
  Args:
      idx: The idx of the model to be retrieved in the dataset.
  
  Returns:
      dictionary with following keys:
      - synset_id (str): synset id
      - model_id (str): model id
docstr_tok: ["Read","a","model","by","the","given","index",".","Args",":","idx",":","The","idx","of","the","model","to","be","retrieved","in","the","dataset",".","Returns",":","dictionary","with","following","keys",":","-","synset_id","(","str",")",":","synset","id","-","model_id","(","str",")",":","model","id"]
code: def _get_item_ids(self, idx) -> Dict:
      """
      Read a model by the given index.
  
      Args:
          idx: The idx of the model to be retrieved in the dataset.
  
      Returns:
          dictionary with following keys:
          - synset_id (str): synset id
          - model_id (str): model id
      """
      model = {}
      model["synset_id"] = self.synset_ids[idx]
      model["model_id"] = self.model_ids[idx]
      return model
  
file_path: pytorch3d/pytorch3d/datasets/shapenet_base.py
imports: import warnings
  from typing import Dict, List, Optional, Tuple
  import torch
  from pytorch3d.common.datatypes import Device
  from pytorch3d.io import load_obj
  from pytorch3d.renderer import FoVPerspectiveCameras, HardPhongShader, MeshRasterizer, MeshRenderer, PointLights, RasterizationSettings, TexturesVertex
  from .utils import collate_batched_meshes
label_desc: Use image node_id 4 for calling the ShapeNetBase obj's underlying member method code with example usage: obj._get_item_ids(idx) and returns: model