code: def get_by_example_hash(cls, collection, index_id, example_data, allow_multiple=False, skip=None, limit=None):
          
  
          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)
docs: 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