code: def http_auth_patch(mocker):
      from dulwich.client import HTTPUnauthorized
  
      url = "https://0.0.0.0"
      client = mocker.MagicMock()
      client.get_refs.side_effect = HTTPUnauthorized("", url)
      client.send_pack.side_effect = HTTPUnauthorized("", url)
  
      patch = mocker.patch("dulwich.client.get_transport_and_path")
      patch.return_value = (client, url)
      return url
  
imports: import pytest
  from tests.unit.repo.experiments.conftest import exp_stage, failed_exp_stage, session_app, session_queue, session_worker, test_queue
label_desc: Use image node_id 1 for calling a global function with example usage: http_auth_patch(mocker) and returns: url