docstr: Initialize Materials class with the default values.
docstr_tok: ["Initialize","Materials","class","with","the","default","values","."]
code: def test_init(self):
      """
      Initialize Materials class with the default values.
      """
      device = torch.device("cuda:0")
      mat = Materials(device=device)
      self.assertTrue(torch.is_tensor(mat.ambient_color))
      self.assertTrue(torch.is_tensor(mat.diffuse_color))
      self.assertTrue(torch.is_tensor(mat.specular_color))
      self.assertTrue(torch.is_tensor(mat.shininess))
      self.assertTrue(mat.ambient_color.device == device)
      self.assertTrue(mat.diffuse_color.device == device)
      self.assertTrue(mat.specular_color.device == device)
      self.assertTrue(mat.shininess.device == device)
      self.assertTrue(mat.ambient_color.shape == (1, 3))
      self.assertTrue(mat.diffuse_color.shape == (1, 3))
      self.assertTrue(mat.specular_color.shape == (1, 3))
      self.assertTrue(mat.shininess.shape == (1,))
  
file_path: pytorch3d/tests/test_materials.py
imports: import unittest
  import torch
  from pytorch3d.renderer.materials import Materials
  from .common_testing import TestCaseMixin
label_desc: Use image node_id 1 for calling the TestMaterials obj's underlying member method code with example usage: obj.test_init() without return types