code: def test_image_id_with_registry():
      tag = "docker.io/openmined/test-nginx:0.7.8"
      registry = SyftImageRegistry.from_url("docker.io")
      image_id = SyftWorkerImageIdentifier.with_registry(tag, registry)
  
      assert image_id.registry_host == "docker.io"
      assert image_id.repo == "openmined/test-nginx"
      assert image_id.tag == "0.7.8"
      assert image_id.repo_with_tag == "openmined/test-nginx:0.7.8"
      assert image_id.full_name_with_tag == tag
  
imports: import pytest
  from syft.service.worker.image_identifier import SyftWorkerImageIdentifier
  from syft.service.worker.image_registry import SyftImageRegistry
label_desc: Use image node_id 3 for calling a global function with example usage: test_image_id_with_registry() without return types