code: def extract_response_field(response, field_name):
      if response is None:
          return None
  
      try:
          response_json = response.json()
          if isinstance(response_json, dict):
              return response_json.get(field_name)
          else:
              _logger.debug(
                  "HTTP response is not a dict: %s", str(response_json)
              )
              return None
      except ValueError as e:
          _logger.debug("Failed to parse HTTP response: %s", e)
          return None
  
file_path: neptune-client/src/neptune/legacy/internal/utils/http.py
imports: import logging
  from functools import wraps
  from http.client import NOT_FOUND, UNPROCESSABLE_ENTITY
  from requests.exceptions import HTTPError
  from neptune.legacy.api_exceptions import ExperimentNotFound, StorageLimitReached
  from neptune.legacy.exceptions import NeptuneException
label_desc: Use image node_id 1 for calling a global function with example usage: extract_response_field(response, field_name) and returns: None, response_json, None, None