def METHOD_NAME(self):
    # type: () -> Iterator[Tuple[IO, str]]
    if self.is_stdout(self.options):
        tmpdir = os.path.join(ENV.PEX_ROOT, "tmp")
        safe_mkdir(tmpdir)
        with tempfile.NamedTemporaryFile(
            prefix="{}.".format(__name__),
            suffix=".deps.{}".format(self.options.format),
            dir=tmpdir,
            delete=False,
        ) as tmp_out:
            yield tmp_out, tmp_out.name
            return
    with self.output(self.options, binary=True) as out:
        yield out, out.name