def METHOD_NAME(proc: Process):
    # Closes transport (initialized during 'await proc.communicate(...)' ) and avoids error:
    #
    # Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x7f871d0c7e50>
    # Traceback (most recent call last):
    #   File " ... .pyenv/versions/3.9.12/lib/python3.9/asyncio/base_subprocess.py", line 126, in __del__
    #     self.close()
    #
    # SEE implementation of asyncio.subprocess.Process._read_stream(...)
    for fd in (1, 2):
        # pylint: disable=protected-access
        if transport := getattr(proc, "_transport", None):  # noqa: SIM102
            if t := transport.get_pipe_transport(fd):
                t.close()