code: def test_load_mtl_texture_atlas_compare_softras(self):
      # Load saved texture atlas created with SoftRas.
      device = torch.device("cuda:0")
      obj_filename = TUTORIAL_DATA_DIR / "cow_mesh/cow.obj"
      expected_atlas_fname = DATA_DIR / "cow_texture_atlas_softras.pt"
  
      # Note, the reference texture atlas generated using SoftRas load_obj function
      # is too large to check in to the repo. Download the file to run the test locally.
      if not os.path.exists(expected_atlas_fname):
          url = (
              "https://dl.fbaipublicfiles.com/pytorch3d/data/"
              "tests/cow_texture_atlas_softras.pt"
          )
          msg = (
              "cow_texture_atlas_softras.pt not found, download from %s, "
              "save it at the path %s, and rerun"
              % (url, expected_atlas_fname)
          )
          warnings.warn(msg)
          return True
  
      expected_atlas = torch.load(expected_atlas_fname)
      _, _, aux = load_obj(
          obj_filename,
          load_textures=True,
          device=device,
          create_texture_atlas=True,
          texture_atlas_size=15,
          texture_wrap="repeat",
      )
  
      self.assertClose(expected_atlas, aux.texture_atlas, atol=5e-5)
  
imports: import os
  import unittest
  import warnings
  from collections import Counter
  from io import StringIO
  from pathlib import Path
  from tempfile import NamedTemporaryFile, TemporaryDirectory
  import torch
  from iopath.common.file_io import PathManager
  from pytorch3d.io import IO, load_obj, load_objs_as_meshes, save_obj
  from pytorch3d.io.mtl_io import _bilinear_interpolation_grid_sample, _bilinear_interpolation_vectorized, _parse_mtl
  from pytorch3d.renderer import TexturesAtlas, TexturesUV, TexturesVertex
  from pytorch3d.structures import join_meshes_as_batch, Meshes
  from pytorch3d.utils import torus
  from .common_testing import get_pytorch3d_dir, get_tests_dir, load_rgb_image, TestCaseMixin
label_desc: Use image node_id 21 for calling the TestMeshObjIO obj's underlying member method code with example usage: obj.test_load_mtl_texture_atlas_compare_softras() and returns: True