call the MigrationAutodetector function with arguments, return value of the call to the method executor.loader.project_state,
autodetector = MigrationAutodetector ( executor . loader . project_state ( ) , ProjectState . from_apps ( apps ) , )