code: def test_package_dependency_create_no_version():
      mod = mock.Mock(spec=[], __name__="testmod")
      pd = PackageDependency.create(mod)
      assert pd.name == "testmod"
      assert pd.version 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 12 for calling a global function with example usage: test_package_dependency_create_no_version() without return types