code: def test_correct_saving_floats():
      res = {
          "image1.jpg": [
              ("image1_duplicate1.jpg", np.float16(0.324)),
              ("image1_duplicate2.jpg", np.float16(0.324)),
          ],
          "image2.jpg": [],
          "image3.jpg": [("image1_duplicate1.jpg", np.float32(0.324))],
      }
      save_file = "myduplicates.json"
      general_utils.save_json(
          results=res, filename=save_file, float_scores=True
      )
      with open(save_file, "r") as f:
          saved_json = json.load(f)
  
      assert len(saved_json) == 3  # all valid files present as keys
      assert isinstance(
          saved_json["image1.jpg"][0][1], float
      )  # saved score is of type 'float' for np.float16 score
      assert isinstance(
          saved_json["image3.jpg"][0][1], float
      )  # saved score is of type 'float' for np.float32 score
  
      os.remove(save_file)
  
imports: import os
  import json
  import numpy
  from imagededup.utils import general_utils
label_desc: Use image node_id 2 for calling a global function with example usage: test_correct_saving_floats() without return types