code: def test_set_value_from_file():
      img = Image()
      with get_logo_png() as LOGO_PNG:
          with open(LOGO_PNG, "rb") as f:
              img.set_value_from_file(f)
              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 8 for calling a global function with example usage: test_set_value_from_file() without return types