code: def test_set_from_filename():
      img = Image()
      with get_logo_png() as LOGO_PNG:
          img.set_value_from_file(LOGO_PNG)
  
          assert_equal_hash(img.value, LOGO_PNG_DIGEST)
  
imports: import io
  import os
  from ipywidgets import Image
  import hashlib
  import pkgutil
  import tempfile
  from contextlib import contextmanager
label_desc: Use image node_id 6 for calling a global function with example usage: test_set_from_filename() without return types