def buildDataFrame(self, data, flags=None, streamID=1):
        """
        Builds a single data frame out of a chunk of data.
        """
        flags = set(flags) if flags is not None else set()
        f = hyperframe.frame.DataFrame(streamID)
        f.data = data
        f.flags = flags
        return f

        Builds a single data frame out of a chunk of data.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http2.py