code: def get_vertices_and_faces(obj):
      bmesh = obj.data  # TODO: verify that this is a mesh object?
      vertices = np.array([v.co for v in bmesh.vertices])
      faces = np.array(
          [
              list(p.vertices)
              for p in bmesh.polygons
              if len(p.vertices) > 2
          ]
      )  # pylint: disable=unnecessary-comprehension
      return vertices, faces
  
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 2 for calling a global function with example usage: get_vertices_and_faces(obj) and returns: vertices,  faces