How we can run this command

Run the command python3 /home/bob/my_python_test.py and redirect the standard error to the file /home/bob/py_error.txt

python3 /home/bob/my_python_test.py 2>/home/bob/py_error.txt