code: def create_trimesh_from_obj(obj):
      vertices, faces = get_vertices_and_faces(obj)
  
      tmesh = trimesh.Trimesh(vertices=vertices, faces=faces)
  
      if tmesh.is_empty:
          raise ValueError("Mesh is empty!")
      if not tmesh.is_watertight:
          raise ValueError("Mesh is not watertight (has holes)!")
      if not tmesh.is_winding_consistent:
          raise ValueError("Mesh is not winding consistent!")
      if tmesh.body_count() > 1:
          raise ValueError(
              "Mesh consists of more than one connected component (bodies)!"
          )
  
      return tmesh
  
imports: import contextlib
  import copy
  import json
  import pathlib
  import tarfile
  import shutil
  import numpy
  import trimesh
  from kubric.safeimport.bpy import bpy
label_desc: Use image node_id 4 for calling a global function with example usage: create_trimesh_from_obj(obj) and returns: tmesh