code: def test_md5sums():
      """Test md5sum check functions work on know file content"""
  
      with tempfile.NamedTemporaryFile("wb", delete=False) as f:
          f.write(b"Local test\n")
      try:
          file_md5 = sg.get_md5sum(f.name)
          # verify correct md5sum
          assert "ea8a570e9f3afc0a7c3f2a17a48b8047" == file_md5
          # False because is a new file
          assert not sg.md5sum_is_current(f.name)
          # Write md5sum to file to check is current
          with open(f.name + ".md5", "w") as file_checksum:
              file_checksum.write(file_md5)
          try:
              assert sg.md5sum_is_current(f.name)
          finally:
              os.remove(f.name + ".md5")
      finally:
          os.remove(f.name)
  
imports: from __future__ import division, absolute_import, print_function, unicode_literals
  import ast
  import codecs
  import copy
  import logging
  import tempfile
  import re
  import os
  import shutil
  import zipfile
  import pytest
  import sphinx_gallery.gen_rst
  from sphinx_gallery import gen_gallery, downloads
  from sphinx_gallery.gen_gallery import generate_dir_rst
  from sphinx_gallery import sphinx_compatibility
  import matplotlib.pyplot
label_desc: Use image node_id 6 for calling a global function with example usage: test_md5sums() without return types