parameters: ()
return_statement: return _s3_client
docstring: Returns our shared S3 client
docstring_summary: Returns our shared S3 client
docstring_tokens: Returns our shared S3 client
function: def client():  # pragma: no cover
      """
      Returns our shared S3 client
      """
      from django.conf import settings
  
      global _s3_client
      if not _s3_client:
          session = boto3.Session(
              aws_access_key_id=settings.AWS_ACCESS_KEY_ID, aws_secret_access_key=settings.AWS_SECRET_ACCESS_KEY
          )
          _s3_client = session.client("s3", config=Config(retries={"max_attempts": 3}))
  
      return _s3_client
function_tokens: def client ( ) : # pragma: no cover from django . conf import settings global _s3_client if not _s3_client : session = boto3 . Session ( aws_access_key_id = settings . AWS_ACCESS_KEY_ID , aws_secret_access_key = settings . AWS_SECRET_ACCESS_KEY ) _s3_client = session . client ( "s3" , config = Config ( retries = { "max_attempts" : 3 } ) ) return _s3_client