Use of a deprecated method
This code uses deprecated methods, which suggests that it has not been recently reviewed or maintained. Using deprecated methods might lead to erroneous behavior.
def deprecated_method_noncompliant(url):
    import botocore.vendored.requests as requests
    # Noncompliant: uses the deprecated botocore vendored method.
    return requests.get(url)
def deprecated_method_compliant(url, sigv4auth):
    import requests
    # Compliant: avoids using the deprecated methods.
    return requests.get(url, auth=sigv4auth).text