pub fn pyobject_to_instrument_any( py: Python<'_>, instrument: PyObject, ) -> PyResult<InstrumentAny>