code: def check_distance_consistency(ses):
      ses.add_image("test1.jpg")
      ses.add_image("test2.jpg", refresh_after=True)
      r = ses.search_image("test1.jpg")
      assert r[0]["dist"] == 0.0
      assert r[-1]["dist"] == 0.42672771706789686
  
imports: import pytest
  import os
  import hashlib
  from elasticsearch import Elasticsearch, ConnectionError, RequestError, NotFoundError
  from time import sleep
  from image_match.elasticsearch_driver import SignatureES
  from PIL import Image
label_desc: Use image node_id 16 for calling a global function with example usage: check_distance_consistency(ses) without return types