human
What is a good Python function to turn numpy array into string.
assistant
Here is a Python function to turn numpy array into string

import numpy as np

def to_string(arr):
    """
    Turn numpy array into string.
    """
    return str(arr)

# Enter the numpy array
arr = np.array([1, 2, 3, 4, 5])

# Calling the function
print((to_string(arr)))

#Example Output
# [1 2 3 4 5]

#Remember to inspect code for bugs.