code: def default_creds_available() -> bool:
      session = boto3.session.Session()
      try:
          validate_credentials(session)
      except BackendAuthError:
          return False
      return True
  
file_path: dstack/src/dstack/_internal/core/backends/aws/auth.py
imports: import boto3.session
  import botocore.exceptions
  from boto3.session import Session
  from dstack._internal.core.errors import BackendAuthError
  from dstack._internal.core.models.backends.aws import AnyAWSCreds, AWSAccessKeyCreds
label_desc: Use image node_id 4 for calling a global function with example usage: default_creds_available() and returns: True, False