human
Write me a Python function to create a max heap.
assistant
Here is a Python function to create a max heap

import heapq

def max_heap(n):
    """
    Creates a max heap of size n.

    >>> max_heap(3)
    [(0, 1), (1, 2), (2, 3)]
    """
    heap = []
    for i in range(n):
        heapq.heappush(heap, (i, i))
    return heap

# Enter the size of the heap
n = 3

# Calling the function
heap = max_heap(n)

# Print the heap
print(heap)

#Example Output
# [(0, 0), (1, 1), (2, 2)]

#Remember to inspect code for bugs.