code: def test_pep440_version_pattern_invalid():
      assert PEP440_VERSION_PATTERN.match("foo") is None
      assert PEP440_VERSION_PATTERN.match("_12_") is None
      assert PEP440_VERSION_PATTERN.match("version 4") is None
  
imports: import os.path
  import os
  from pathlib import Path
  import mock
  import pytest
  from sacred.dependencies import PEP440_VERSION_PATTERN, PackageDependency, Source, gather_sources_and_dependencies, get_digest, get_py_file_if_possible, is_local_source
  import sacred.optional
label_desc: Use image node_id 2 for calling a global function with example usage: test_pep440_version_pattern_invalid() without return types