# Import the NumPy library and alias it as "np"
import numpy as np 

# Create a NumPy array with the specified values
arr = np.array([1, 2, 2, 3, 3, 3, 4, 4, 4, 4]) 

# Use NumPy's unique function to get the unique 
# values in the array and their corresponding counts
unique_values, counts = np.unique(arr, return_counts=True) 

# Find the index of the maximum count and use it to get the 
# corresponding unique value (i.e., the most frequent value)
most_frequent_value = unique_values[np.argmax(counts)] 

# Print the most frequent value to the console  
print(most_frequent_value)