def METHOD_NAME(self):
    import tempfile
    # https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile
    # delete=False must be set for Windows, because Windows doesn't allow opening a temporary file
    # that is already opened.
    with tempfile.NamedTemporaryFile(delete=False) as f:
        content = b"""