def METHOD_NAME(file_name, state=None, **kw):
    fopen = file_name.endswith('gz') and gzip.open or open
    data = json.loads(
        fopen(os.path.join(os.path.dirname(__file__), "data", file_name)).read()
    )
    if state:
        data.update(state)
    if kw:
        data.update(kw)
    return data