def METHOD_NAME(self, *path_args):
    if self.redirects:
        self.save_redirect_page()
    for header_name, header_value in self.headers.items():
        self.set_header(header_name, header_value)
    proc = Subprocess(
        self.cmdargs,
        # NOTE: developer should sanitize args if shell=True
        # B604 any_other_function_with_shell_equals_true
        shell=self.shell,  # nosec B604
        cwd=self.cwd,
        stream_stdout=self.stream_stdout,
        stream_stderr=self.stream_stderr,
        buffer_size=self.buffer_size,
    )
    yield proc.wait_for_exit()
    # Wait for process to finish
    proc.proc.wait()
    if self.redirects:
        self.redirect_next()