code: def test_load_from_stream():
      gis = ImageSignature()
      with open("test.jpg", "rb") as f:
          sig = gis.generate_signature(f.read(), bytestream=True)
          assert type(sig) is ndarray
          assert sig.shape == (648,)
  
file_path: image-match/tests/test_goldberg.py
imports: import pytest
  from numpy import ndarray, array_equal
  from image_match.goldberg import ImageSignature, CorruptImageError
label_desc: Use image node_id 4 for calling a global function with example usage: test_load_from_stream() without return types