Human: split array to chunk. Assistant: 
Here is a Python function to split arrays into chunks

import numpy as np

def split_array_to_chunk(array, chunk_size):
    """Split array to chunk."""
    num_chunks = int(np.ceil(len(array) / chunk_size))
    return [array[i * chunk_size:(i + 1) * chunk_size] for i in range(num_chunks)]

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

# Calling the function
print((split_array_to_chunk(array, 3)))

#Example Output
# [array([0, 1, 2]), array([3, 4, 5]), array([6, 7, 8]), array([9])]

#Remember to inspect code for bugs.