code: def mock_default_auth(auth_mock: mock.MagicMock) -> None:
      responses.get(
          f"{_MASTER}/api/v1/me",
          status=200,
          json={"username": api_responses.USERNAME},
      )
      responses.post(
          f"{_MASTER}/api/v1/auth/login",
          status=200,
          json=api_responses.sample_login(
              username=api_responses.USERNAME
          ).to_json(),
      )
      auth_mock.return_value = authentication.Authentication(
          master_address=_MASTER,
          requested_user=api_responses.USERNAME,
          password=api_responses.PASSWORD,
      )
  
file_path: determined/harness/tests/determined/common/experimental/test_determined.py
imports: import math
  from typing import Callable, List
  from unittest import mock
  import pytest
  import responses
  from determined.common.api import authentication, errors
  from determined.common.experimental import determined, experiment
  from tests.fixtures import api_responses
label_desc: Use image node_id 1 for calling a global function with example usage: mock_default_auth(auth_mock) without return types