Install x86 Python in m1 instance

I have a job which builds an Intel-mac-compatible version of a pyinstaller executable. Since the x86 macos resources are being deprecated, I’ll need to make Intel-compatible builds from one of the M1 machine executors. Is there a way to install an x86 version of python on an M1 instance? My first thought was to use homebrew with arch -x86_64 but that command errors out.

Support pointed me to the macos orb, with the install-rosetta command. Once Rosetta was installed, I could install the x86_64 version of homebrew, and then used that to install Python.