code: def load(file_obj, file_type=None, **kwargs):
      """Loads a triangle mesh from the given GFile/file path.
  
      Args:
        file_obj: A tf.io.gfile.GFile object or a string specifying the mesh file
          path.
        file_type: A string specifying the type of the file (e.g. 'obj', 'stl'). If
          not specified the file_type will be inferred from the file name.
        **kwargs: Additional arguments that should be passed to trimesh.load().
  
      Returns:
        A trimesh.Trimesh or trimesh.Scene.
      """
  
      if isinstance(file_obj, str):
          with tf.io.gfile.GFile(file_obj, "r") as f:
              if file_type is None:
                  file_type = trimesh.util.split_extension(file_obj)
              return trimesh.load(
                  file_obj=f,
                  file_type=file_type,
                  resolver=GFileResolver(file_obj),
                  **kwargs,
              )
  
      if trimesh.util.is_file(file_obj):
          if not hasattr(file_obj, "name") or not file_obj.name:
              raise ValueError(
                  'file_obj must have attribute "name". Try passing the file name instead.'
              )
          if file_type is None:
              file_type = trimesh.util.split_extension(file_obj.name)
          return trimesh.load(
              file_obj=file_obj,
              file_type=file_type,
              resolver=GFileResolver(file_obj.name),
              **kwargs,
          )
  
      raise ValueError(
          "file_obj should be either a file object or a string"
      )
  
file_path: graphics/tensorflow_graphics/io/triangle_mesh.py
imports: import os
  import tensorflow
  import trimesh
  from trimesh import Scene
  from trimesh import Trimesh
label_desc: Use image node_id 1 for calling a global function with example usage: load(file_obj, file_type) and returns: trimesh, trimesh