human
I wrote the below code

    class Collector(object, ):
        data = []
        def write(self, data):
            self.data.append(data)
    im.load()
    fp = Collector()
    _write_frame_data(fp, im, offset, params)
    return fp.data

What's a good function header?

=====
Here's a good function header?
assistant
#Here's a good function header.

def getdata(im, offset=(0, 0), **params):