code: def sample_get_experiment(
      **kwargs: Any,
  ) -> bindings.v1GetExperimentResponse:
      """Get an experiment from a fixture and optionally override some fields.
  
      Load a sample experiment from a fixture.  It's assumed that generally a caller cares only that
      the response is well-formed. If instead the caller cares about any particular fields, they can
      override them by passing them as keyword arguments.
  
      Args:
          **kwargs: Fields to override in the experiment.
  
      Returns:
          A bindings.v1GetExperimentResponse object with the experiment. NOTE: The returned object
          is a bindings type, *not* a ExperimentReference.
      """
      with open(FIXTURES_DIR / "experiment.json") as f:
          resp = bindings.v1GetExperimentResponse.from_json(
              json.load(f)
          )
          for k, v in kwargs.items():
              setattr(resp.experiment, k, v)
          return resp
  
file_path: determined/harness/tests/common/api_server.py
imports: import contextlib
  import json
  import ssl
  import threading
  from http.server import HTTPServer, SimpleHTTPRequestHandler
  from pathlib import Path
  from typing import Any, Callable, Dict, Iterator, Optional, Tuple
  import determined
  from determined.common.api import bindings
  from determined.common.api.authentication import salt_and_hash
label_desc: Use image node_id 1 for calling a global function with example usage: sample_get_experiment() and returns: resp