code: def create_handlers_map():
    
    pipeline_handlers_map = []
  
    if pipeline:
      pipeline_handlers_map = pipeline.create_handlers_map(prefix=".*/pipeline")
  
    return pipeline_handlers_map + [
        # Task queue handlers.
        # Always suffix by mapreduce_id or shard_id for log analysis purposes.
        # mapreduce_id or shard_id also presents in headers or payload.
        (r".*/worker_callback.*", handlers.MapperWorkerCallbackHandler),
        (r".*/controller_callback.*", handlers.ControllerCallbackHandler),
        (r".*/kickoffjob_callback.*", handlers.KickOffJobHandler),
        (r".*/finalizejob_callback.*", handlers.FinalizeJobHandler),
  
        # RPC requests with JSON responses
        # All JSON handlers should have /command/ prefix.
        (r".*/command/start_job", handlers.StartJobHandler),
        (r".*/command/cleanup_job", handlers.CleanUpJobHandler),
        (r".*/command/abort_job", handlers.AbortJobHandler),
        (r".*/command/list_configs", status.ListConfigsHandler),
        (r".*/command/list_jobs", status.ListJobsHandler),
        (r".*/command/get_job_detail", status.GetJobDetailHandler),
  
        # UI static files
        (STATIC_RE, status.ResourceHandler),
  
        # Redirect non-file URLs that do not end in status/detail to status page.
        (r".*", RedirectHandler),
        ]
docs: Create new handlers map.
  
    Returns:
      list of (regexp, handler) pairs for WSGIApplication constructor.