code: def test_image_id_str_with_host():
      tag = "localhost:5678/openmined/test-nginx:0.7.8"
      image_id = SyftWorkerImageIdentifier.from_str(tag)
      assert image_id.registry_host == "localhost:5678"
      assert image_id.tag == "0.7.8"
      assert image_id.repo == "openmined/test-nginx"
      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 2 for calling a global function with example usage: test_image_id_str_with_host() without return types