human
I wrote the below code

    def generator():
        (yield 0)
        (yield 1)
    from cStringIO import StringIO
    strO = StringIO()
    strO.write('abc\n')
    strO.write('def')
    strI = StringIO('abc\ndef')
    import sys
    fi = sys.float_info
    d = {2: 3, 3: 4}
    l = [2, 3]
    s = set([2, 3, 4])
    if (not is_silverlight):
        f = file('test_file.txt', 'w+')
        f.write('abc\n')
        f.write('def')
        f.close()
        f = file('test_file.txt')
        import os
        stat = os.stat(__file__)
    class x(object, ):
        abc = 2
        bcd = 3
    dictproxy = x.__dict__
    dictlist = list(x.__dict__)
    ba = bytearray('abc')
    try:
        iterators = [(generator(), 0, 1), (strI, 'abc\n', 'def'), (strO, 'abc\n', 'def'), (xrange(10), 0, 0), ([0, 1], 0, 0), ((0, 1), 0, 0), (fi, fi[0], fi[0]), ('abc', 'a', 'a'), (ba, ord('a'), ord('a')), (u'abc', u'a', u'a'), (d, list(d)[0], list(d)[0]), (l, l[0], l[0]), (s, list(s)[0], list(s)[0]), (dictproxy, dictlist[0], dictlist[0])]
        if (not is_silverlight):
            iterators.append((f, 'abc\n', 'def'))
            iterators.append((stat, stat[0], stat[0]))
        for (iterator, res0, res1) in iterators:
            for x in iterator:
                AreEqual(x, res0)
                break
            for x in iterator:
                AreEqual(x, res1)
                break
    finally:
        f.close()
        os.unlink('test_file.txt')

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

@skip('silverlight')
def test_iterator_for():