code: def test_clamp_to_discrete(self):
      discrete = [0.111, 0.222, 0.333, 0.444, 0.555, 1.0]
      arr = np.array([0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9])
  
      expected = np.array(
          [0.111, 0.111, 0.222, 0.333, 0.444, 0.555, 1.0, 1.0, 1.0, 1.0]
      )
      actual = fou3d._clamp_to_discrete(arr, discrete)
      self.assertTrue(np.array_equal(expected, actual))
  
imports: import os
  import tempfile
  import unittest
  import numpy
  import open3d
  from PIL import Image
  import fiftyone
  import fiftyone.utils.utils3d
  from decorators import drop_datasets
label_desc: Use image node_id 1 for calling the HelperMethodTests obj's underlying member method code with example usage: obj.test_clamp_to_discrete() without return types