code: def _parse_mtl(
      f: str, path_manager: PathManager, device: Device = "cpu"
  ) -> Tuple[MaterialProperties, TextureFiles]:
      material_properties = {}
      texture_files = {}
      material_name = ""
  
      with _open_file(f, path_manager, "r") as f:
          for line in f:
              tokens = line.strip().split()
              if not tokens:
                  continue
              if tokens[0] == "newmtl":
                  material_name = tokens[1]
                  material_properties[material_name] = {}
              elif tokens[0] == "map_Kd":
                  # Diffuse texture map
                  # Account for the case where filenames might have spaces
                  filename = line.strip()[7:]
                  texture_files[material_name] = filename
              elif tokens[0] == "Kd":
                  # RGB diffuse reflectivity
                  kd = np.array(tokens[1:4]).astype(np.float32)
                  kd = torch.from_numpy(kd).to(device)
                  material_properties[material_name][
                      "diffuse_color"
                  ] = kd
              elif tokens[0] == "Ka":
                  # RGB ambient reflectivity
                  ka = np.array(tokens[1:4]).astype(np.float32)
                  ka = torch.from_numpy(ka).to(device)
                  material_properties[material_name][
                      "ambient_color"
                  ] = ka
              elif tokens[0] == "Ks":
                  # RGB specular reflectivity
                  ks = np.array(tokens[1:4]).astype(np.float32)
                  ks = torch.from_numpy(ks).to(device)
                  material_properties[material_name][
                      "specular_color"
                  ] = ks
              elif tokens[0] == "Ns":
                  # Specular exponent
                  ns = np.array(tokens[1:4]).astype(np.float32)
                  ns = torch.from_numpy(ns).to(device)
                  material_properties[material_name]["shininess"] = ns
  
      return material_properties, texture_files
  
file_path: pytorch3d/pytorch3d/io/mtl_io.py
imports: import os
  import warnings
  from typing import Dict, List, Optional, Tuple
  import numpy
  import torch
  import torch.nn.functional
  from iopath.common.file_io import PathManager
  from pytorch3d.common.compat import meshgrid_ij
  from pytorch3d.common.datatypes import Device
  from pytorch3d.io.utils import _open_file, _read_image
label_desc: Use image node_id 5 for calling a global function with example usage: _parse_mtl(f, path_manager, device) and returns: material_properties,  texture_files