Neural networks are best thought of as function approximators. Given some example instances of f(x), a neural network will output an approximating function g(x). ChatGPT is a function that approximates what a human brain would output for some input.