docstr: Check if the data paths are given otherwise skip tests.
docstr_tok: ["Check","if","the","data","paths","are","given","otherwise","skip","tests","."]
code: def setUp(self):
      """
      Check if the data paths are given otherwise skip tests.
      """
      if SHAPENET_PATH is None or not os.path.exists(SHAPENET_PATH):
          url = "https://www.shapenet.org/"
          msg = (
              "ShapeNet data not found, download from %s, update "
              "SHAPENET_PATH at the top of the file, and rerun."
          )
          self.skipTest(msg % url)
      if R2N2_PATH is None or not os.path.exists(R2N2_PATH):
          url = "http://3d-r2n2.stanford.edu/"
          msg = (
              "R2N2 data not found, download from %s, update "
              "R2N2_PATH at the top of the file, and rerun."
          )
          self.skipTest(msg % url)
      if SPLITS_PATH is None or not os.path.exists(SPLITS_PATH):
          msg = """Splits file not found, update SPLITS_PATH at the top
                  of the file, and rerun."""
          self.skipTest(msg)
  
imports: import json
  import os
  import unittest
  import numpy
  import torch
  from PIL import Image
  from pytorch3d.datasets import BlenderCamera, collate_batched_R2N2, R2N2, render_cubified_voxels
  from pytorch3d.renderer import FoVPerspectiveCameras, look_at_view_transform, PointLights, RasterizationSettings
  from pytorch3d.renderer.cameras import get_world_to_view_transform
  from pytorch3d.transforms import Transform3d
  from pytorch3d.transforms.so3 import so3_exp_map
  from torch.utils.data import DataLoader
  from .common_testing import get_tests_dir, load_rgb_image, TestCaseMixin
label_desc: Use image node_id 1 for calling the TestR2N2 obj's underlying member method code with example usage: obj.setUp() without return types