code: def ACESFilmicToneMapping(img: np.array) -> np.array:
      """Using the same tonemapping function as three.js and glTF Sample Viewer
      https://github.com/mrdoob/three.js/blob/dev/examples/jsm/shaders/ACESFilmicToneMappingShader.js
  
      Args:
          img (np.array): The HDR image to be tonemapped
  
      Returns:
          np.array: The tonemapped LDR image
      """
      # sRGB => XYZ => D65_2_D60 => AP1 => RRT_SAT
      ACESInputMat = np.array(
          [
              [0.59719, 0.07600, 0.02840],  # transposed from source
              [0.35458, 0.90834, 0.13383],
              [0.04823, 0.01566, 0.83777],
          ]
      )
  
      # ODT_SAT => XYZ => D60_2_D65 => sRGB
      ACESOutputMat = np.array(
          [
              [1.60475, -0.10208, -0.00327],  # transposed from source
              [-0.53108, 1.10813, -0.07276],
              [-0.07367, -0.00605, 1.07602],
          ]
      )
  
      img = img @ ACESInputMat
      img = RRTAndODTFit(img)
      img = img @ ACESOutputMat
  
      return img
  
file_path: model-viewer/packages/render-fidelity-tools/test/renderers/vray/render.py
imports: import json
  import os
  import sys
  import math
  import vray
  import numpy
  from PIL import Image
  import vray_gltf.Gltf_Parser.gltfparser
label_desc: Use image node_id 2 for calling a global function with example usage: ACESFilmicToneMapping(img) and returns: img