def get_active_backend():
 active_backend_and_jobs = getattr(_backend, 'backend_and_jobs', None)
 if (active_backend_and_jobs is not None):
  return active_backend_and_jobs
 active_backend = BACKENDS[DEFAULT_BACKEND]()
 return (active_backend, DEFAULT_N_JOBS)

def get_active_backend ( ) : active_backend_and_jobs = getattr ( _backend , 'backend_and_jobs' , None ) if ( active_backend_and_jobs is not None ) : return active_backend_and_jobs active_backend = BACKENDS [ DEFAULT_BACKEND ] ( ) return ( active_backend , DEFAULT_N_JOBS )
return the active default backend .