Human: Python function to divide array into chunks. Assistant: 
Here is a Python function to divide array into chunks

import numpy as np

def divide_array_into_chunks(array, chunk_size):
    """Divide array into chunks."""
    return [array[i:i+chunk_size] for i in range(0, len(array), chunk_size)]

# Enter the array
array = np.arange(10)

# Calling the function
chunks = divide_array_into_chunks(array, 3)

# Printing the chunks
for chunk in chunks:
    print(chunk)

#Example Output
[0, 1, 2]

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

#Remember to inspect code for bugs.