human
accesing elements in a heap in.
assistant
Here is a Python function for accessing elements in a heap

import heapq

def heap_access(heap, index):
    """
    >>> heap = [1, 2, 3, 4, 5]
    >>> heap_access(heap, 0)
    1
    >>> heap_access(heap, 2)
    3
    """
    return heap[index]

# Enter the heap
heap = [1, 2, 3, 4, 5]

# Calling the function
print((heap_access(heap, 0)))
print((heap_access(heap, 2)))

#Example Output
# 1
# 3

#Remember to inspect code for bugs.