code: def check_version(version, outdir):
      from sympy.release import __version__ as checked_out_version
  
      if version != checked_out_version:
          msg = "version %s does not match checkout %s"
          raise AssertionError(msg % (version, checked_out_version))
      if basename(normpath(outdir)) != "release-%s" % (version,):
          msg = "version %s does not match output directory %s"
          raise AssertionError(msg % (version, outdir))
  
file_path: sympy/release/releasecheck.py
imports: from os.path import join, basename, normpath
  from subprocess import check_call
label_desc: Use image node_id 7 for calling a global function with example usage: check_version(version, outdir) without return types