code: def saved_search(search_id, sort, pretty, limit):
      '''Execute a saved search'''
      sid = read(search_id)
      cl = clientv1()
      page_size = min(limit, 250)
      echo_json_response(call_and_wrap(
          cl.saved_search, sid, page_size=page_size, sort=sort
      ), limit=limit, pretty=prettyf saved_search(search_id, sort, pretty, limit):
      '''Execute a saved search'''
      sid = read(search_id)
      cl = clientv1()
      page_size = min(limit, 250)
      echo_json_response(call_and_wrap(
          cl.saved_search, sid, page_size=page_size, sort=sort
      ), limit=limit, pretty=pretty)
docs: Execute a saved search