code: def test_push_image_to_registry():
      image_uri = "dockerhub_account/mlflow-kubernetes-example"
      with mock.patch("docker.from_env") as docker_mock:
          client = mock.MagicMock()
          docker_mock.return_value = client
          kb.push_image_to_registry(image_uri)
          assert client.images.push.call_count == 1
          args = client.images.push.call_args_list
          assert args[0][1]["repository"] == image_uri
  
file_path: mlflow/tests/projects/test_kubernetes.py
imports: from unittest import mock
  import kubernetes
  import pytest
  import yaml
  from kubernetes.config.config_exception import ConfigException
  from mlflow.entities import RunStatus
  from mlflow.exceptions import ExecutionException
  from mlflow.projects import kubernetes
label_desc: Use image node_id 6 for calling a global function with example usage: test_push_image_to_registry() without return types