code: def credentials(request):
      # local tests require environment variables `DHUS_USER` and `DHUS_PASSWORD`
      # for Travis CI they are set as encrypted environment variables and stored
      record_mode = request.config.getoption("--vcr-record")
      disable_vcr = request.config.getoption("--disable-vcr")
      if record_mode in ["none", None] and not disable_vcr:
          # Using VCR.py cassettes for pre-recorded query playback
          # Any network traffic will raise an exception
          disable_socket()
      elif "DHUS_USER" not in environ or "DHUS_PASSWORD" not in environ:
          raise ValueError(
              "Credentials must be set when --vcr-record is not none or --disable-vcr is used. "
              "Please set DHUS_USER and DHUS_PASSWORD environment variables."
          )
  
      return [environ.get("DHUS_USER"), environ.get("DHUS_PASSWORD")]
  
imports: import re
  import threading
  from datetime import datetime
  from functools import reduce
  from os import environ
  from os.path import abspath, dirname, exists, isfile, join
  import pytest
  import yaml
  from pytest_socket import disable_socket
  from vcr import VCR
  import sentinelsat
  from sentinelsat import SentinelAPI, geojson_to_wkt, read_geojson
  from .custom_serializer import BinaryContentSerializer
label_desc: Use image node_id 7 for calling a global function with example usage: credentials(request) and returns: list