human
Complete this python program:
def FindReferencedIOSImages():
assistant
#Here is the Python code you requested.

    """Find images referenced in the code and return a dict of "filename" -> "inset quad".
    """
    source_files = FindFilesIn(IOS_SOURCE_DIR, '*.mm')
    image_re = re.compile('^LazyStaticImage    [^;]+;', re.MULTILINE)
    file_re = re.compile('@"([^"]+)"')
    inset_re = re.compile('UIEdgeInsetsMake\\(([0-9.]+),([0-9.]+),([0-9.]+),([0-9.]+)\\)')
    def ParseLazyStaticImage(line):
        result = file_re.search(line)
        assert (result is not None), ('Could    not    extract    filename    from    %r' % line)
        name = result.group(1)
        if ('.' not in name):
            name += '.png'
        inset = None
        if (re.search('UIEdgeInsetsMake', line) is not None):
            result = inset_re.search(re.sub('\\s', '', line))
            assert (result is not None), ('Found    UIEdgeInsetsMake,    but    could    not    parse    arguments:    %r' % line)
            assert (len(result.groups()) == 4), ('invalid    inset    call:    %r' % line)
            inset = tuple([float(x) for x in result.groups()])
        return (name, inset)
    filenames = dict()
    for f in source_files:
        contents = open(f, 'r').read()
        for i in image_re.findall(contents):
            (name, inset) = ParseLazyStaticImage(i)
            if (name in filenames):
                assert (filenames[name] == inset), ('Image    found    with    different    insets:    %s' % name)
            else:
                filenames[name] = inset
    for name in FORCE_REFERENCE:
        filenames[name] = None
    return filenames