capture tests: move imports and declarations to the top
capture tests: move imports and declarations to the top

jaraco/pytest,codewarrior0/pytest,takluyver/pytest,icemac/pytest,Haibo-Wang-ORG/pytest,mhils/pytest,ericdill/pytest,untitaker/pytest,mhils/pytest,takluyver/pytest,gabrielcnr/pytest,oleg-alexandrov/pytest,jb098/pytest,hunse/pytest,ropez/pytest,The-Compiler/pytest,wfxiang08/pytest,The-Compiler/pytest,gabrielcnr/pytest,rouge8/pytest,nicoddemus/repo-test,nicoddemus/pytest,Carreau/pytest,Bachmann1234/pytest,ddboline/pytest,bubenkoff/pytest,mbirtwell/pytest,vodik/pytest,bukzor/pytest,abusalimov/pytest,jb098/pytest,oleg-alexandrov/pytest,pytest-dev/pytest,chiller/pytest,inirudebwoy/pytest,bukzor/pytest,ionelmc/pytest,lukas-bednar/pytest,pelme/pytest,nicoddemus/pytest,MengJueM/pytest,pelme/pytest,hackebrot/pytest,hpk42/pytest,vodik/pytest,eli-b/pytest,nicoddemus/repo-test,bubenkoff/pytest,tareqalayan/pytest,lukas-bednar/pytest,ghostsquad/pytest,doordash/pytest,ghostsquad/pytest,ojake/pytest,omarkohl/pytest,Bachmann1234/pytest,ropez/pytest,tomviner/pytest,wfxiang08/pytest,chiller/pytest,untitaker/pytest,tgoodlet/pytest,hpk42/pytest,icemac/pytest,userzimmermann/pytest,userzimmermann/pytest,hunse/pytest,ionelmc/pytest,davidszotten/pytest,rouge8/pytest,omarkohl/pytest,chillbear/pytest,markshao/pytest,mdboom/pytest,doordash/pytest,rmfitzpatrick/pytest,abusalimov/pytest,skylarjhdownes/pytest,etataurov/pytest,MengJueM/pytest,mbirtwell/pytest,MichaelAquilina/pytest,tomviner/pytest,malinoff/pytest,chillbear/pytest,RonnyPfannschmidt/pytest,mdboom/pytest,Bjwebb/pytest,JonathonSonesen/pytest,flub/pytest,alfredodeza/pytest,vmalloc/dessert,inirudebwoy/pytest,txomon/pytest,ojake/pytest,codewarrior0/pytest,Akasurde/pytest,ericdill/pytest,Haibo-Wang-ORG/pytest,JonathonSonesen/pytest,pfctdayelise/pytest,Bjwebb/pytest,Carreau/pytest