code: def testWaitUntilRunning(self, mock_time):
      # Prepare mocks and variables.
      container = self._docker_client.containers.run.return_value
      container.ports = {
          "8500/tcp": [
              {"HostIp": "0.0.0.0", "HostPort": "1234"}
          ],  # gRPC port.
          "8501/tcp": [
              {"HostIp": "0.0.0.0", "HostPort": "5678"}
          ],  # REST port.
      }
      runner = self._create_local_docker_runner()
      mock_time.side_effect = list(range(10))
  
      # Setup state.
      runner.Start()
      container.status = "running"
  
      # Act.
      try:
          runner.WaitUntilRunning(deadline=10)
      except Exception as e:  # pylint: disable=broad-except
          self.fail(e)
  
      # Check states.
      container.reload.assert_called()
  
imports: import os
  from typing import Any, Dict
  from unittest import mock
  from docker import errors
  import tensorflow
  from tfx.components.infra_validator import error_types
  from tfx.components.infra_validator import serving_bins
  from tfx.components.infra_validator.model_server_runners import local_docker_runner
  from tfx.proto import infra_validator_pb2
  from tfx.types import standard_artifacts
  from tfx.utils import path_utils
  from google.protobuf import json_format
label_desc: Use image node_id 7 for calling the LocalDockerRunnerTest obj's underlying member method code with example usage: obj.testWaitUntilRunning(mock_time) without return types