code: def get_object_properties(obj, density=1.0):
      tmesh = blender_utils.bpy_mesh_object_to_trimesh(obj)
  
      rounda = lambda x: np.round(x, decimals=4).tolist()
      roundf = lambda x: float(np.round(x, decimals=4))
  
      properties = {
          "nr_vertices": len(tmesh.vertices),
          "nr_faces": len(tmesh.faces),
          "bounds": rounda(tmesh.bounds),
          "surface_area": roundf(tmesh.area),
          "volume": roundf(tmesh.volume),
          "center_mass": rounda(tmesh.center_mass),
          "inertia": rounda(tmesh.moment_inertia),
          "mass": roundf(tmesh.volume * density),
      }
      return properties
  
file_path: kubric/kubric/scripts/kubasic.py
imports: import argparse
  import logging
  import os
  import re
  import sys
  import tarfile
  import tempfile
  from typing import Optional
  import bpy
  import numpy
  import pybullet
  from kubric import file_io
  from kubric.renderer import blender_utils
  from kubric.kubric_typing import PathLike
  from kubric import redirect_io
label_desc: Use image node_id 1 for calling a global function with example usage: get_object_properties(obj, density) and returns: properties