code: def test_all_orientations(ses):
      im = Image.open("test1.jpg")
      im.rotate(90, expand=True).save("rotated_test1.jpg")
  
      ses.add_image("test1.jpg", refresh_after=True)
      r = ses.search_image("rotated_test1.jpg", all_orientations=True)
      assert len(r) == 1
      assert r[0]["path"] == "test1.jpg"
      assert r[0]["dist"] < 0.05  # some error from rotation
  
      with open("rotated_test1.jpg", "rb") as f:
          r = ses.search_image(
              f.read(), bytestream=True, all_orientations=True
          )
          assert len(r) == 1
          assert r[0]["dist"] < 0.05
  
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 19 for calling a global function with example usage: test_all_orientations(ses) without return types