human
Can you show me a Python function to access an 2d array in Python.
assistant
Here is a Python function to access an 2 d array in Python

import numpy as np

def get_2d_array(*args):
    """Get a 2d array from a list of lists
    """
    return np.array(args)

# Enter the list of lists
myList = [[1,2,3],[4,5,6],[7,8,9]]

# Calling the function
myArray = get_2d_array(myList)

# Printing the 2d array
print(myArray)

#Example Output

# [[[1 2 3]
#   [4 5 6]
#   [7 8 9]]]

#Remember to inspect code for bugs.