
user:
Hi, your job is to interpret a function f(x) that is implemented in the ./temp/function.py script. f(x) takes string inputs.
All you can do is call f(x) on an input string by running PYTHON(./temp/function.py string). 
Try to describe the function implemented by f(x) by running experiments on it. 
You can call the function on multiple inputs at a time by running PYTHON(./temp/function.py string1 string2 string3 ...). 
We encourage testing a large range of inputs before writing a description.
The goal is to find a good simple description of f(x) that explains most of the function behavior. f(x) may combine multiple different operations.
Your description of the function should be in the following form.
[DESCRIPTION]: Describe what the function is doing in language. 
[CODE]: Write python code that approximates the behavior of the function. 
assistant:
Got it. Let's start by testing the function with simple inputs to get an initial idea of its behavior.

COMMAND: PYTHON(./temp/function.py a b c)
user:
Response: Function input - output pairs: (a, Z) (b, =) (c, >) 

assistant:
Interesting. Let's test the function with some more inputs including uppercase letters and special characters.

COMMAND: PYTHON(./temp/function.py A B C 1 2 3 @ # $)
user:
Response: Function input - output pairs: (A, Z) (B, =) (C, >) (1, 1) (2, 2) (3, 3) (@, @) 

assistant:
It seems like the function might be shifting letters, but not numbers or special characters. Let's test more examples to confirm this.

COMMAND: PYTHON(./temp/function.py d e f D E F x y z X Y Z )
user:
Response: Function input - output pairs: (d, ?) (e, @) (f, A) (D, ?) (E, @) (F, A) (x, S) (y, T) (z, U) (X, S) (Y, T) (Z, U) 

assistant:
Based on the provided test cases, it seems like the function is shifting letters, both lowercase and uppercase, by 3 positions in reverse order (e.g., 'a' becomes 'Z', and 'A' becomes 'Z', and so on). Numbers and special characters remain the same.

[DESCRIPTION]: The function shifts letters by 3 positions in reverse order in the alphabet, both for lowercase and uppercase. It does not change numbers and special characters.

[CODE]:
```python
def approx_function(x):
    if x.isalpha():
        shift = -3
        if x.islower():
            return chr((ord(x) - ord('a') + shift) % 26 + ord('a'))
        else: # uppercase letters
            return chr((ord(x) - ord('A') + shift) % 26 + ord('A'))   
    else:
        return x
```

Let's test our approximation with the same inputs.

COMMAND: PYTHON(./temp/function.py approx_function)