<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_by_example_hash(cls, collection, index_id, example_data, allow_multiple=False, skip=None, limit=None):
 """ This will find all documents matching a given example, using the specified hash index. :param collection Collection instance :param index_id ID of the index which should be used for the query :param example_data The example document :param allow_multiple If the query can return multiple documents :param skip The number of documents to skip in the query :param limit The maximal amount of documents to return. The skip is applied before the limit restriction. :returns Single document / Document list """


        kwargs = {
            'index': index_id,
            'skip': skip,
            'limit': limit,
        }

        return cls._construct_query(name='by-example-hash',
                                    collection=collection, example=example_data, multiple=allow_multiple,
                                    **kwargs)