<human>:  Can you show me a Python function to achieve similarity on chunks of a large list of lists.
<bot>:)

# Calling the function
print((jaccard_similarity(matrix, matrix)))

#Example Output
# 1.0

#Remember to inspect code for bugs.