Outdated subprocess module API
Using outdated multiprocessing API calls to start and communicate with processes, is not recommended. The `subprocess` module can be used instead.
def subprocess_call_noncompliant():
    import subprocess
    with open("~/output.txt", "w") as f:
        # Noncompliant: uses 'subprocess.call' with
        # 'stdout = PIPE' or 'stderr = PIPE'.
        subprocess.call("~/test.sh", stdout=subprocess.PIPE)
def subprocess_call_compliant():
    import subprocess
    with open("~/output.txt", "w") as f:
        # Compliant: uses 'subprocess.call' without
        # 'stdout = PIPE' or 'stderr = PIPE'.
        subprocess.call("~/test.sh", stdout=f)