code: def get_tmesh(obj_fd):
      scene_or_mesh = trimesh.load_mesh(obj_fd, process=False)
      if isinstance(scene_or_mesh, trimesh.Scene):
          mesh_list = [
              trimesh.Trimesh(vertices=g.vertices, faces=g.faces)
              for g in scene_or_mesh.geometry.values()
          ]
          tmesh = _merge_meshes(mesh_list)
      else:
          tmesh = scene_or_mesh
  
      # TODO: see https://github.com/google-research/kubric/issues/134
      # TL;DR: this solution was a bit of a hack, but you'd be able to change pivot in blender?
      # center_mass = tmesh.center_mass
      # tmesh.apply_translation(-center_mass)
      return tmesh
  
file_path: kubric/shapenet2kubric/trimesh_utils.py
imports: import json
  import sys
  import trimesh
  import logging
  import numpy
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: get_tmesh(obj_fd) and returns: tmesh