class_docstr: A set of runs associated with a sweep.
  
  Examples:
      Instantiate with:
      ```
      api = wandb.Api()
      sweep = api.sweep(path/to/sweep)
      ```
  
  Attributes:
      runs: (`Runs`) list of runs
      id: (str) sweep id
      project: (str) name of project
      config: (str) dictionary of sweep configuration
      state: (str) the state of the sweep
      expected_run_count: (int) number of expected runs for the sweep
docstr: Execute a query against the cloud backend.
docstr_tok: ["Execute","a","query","against","the","cloud","backend","."]
code: def get(
      cls,
      client,
      entity=None,
      project=None,
      sid=None,
      order=None,
      query=None,
      **kwargs,
  ):
      """Execute a query against the cloud backend."""
      if query is None:
          query = cls.QUERY
  
      variables = {
          "entity": entity,
          "project": project,
          "name": sid,
      }
      variables.update(kwargs)
  
      response = None
      try:
          response = client.execute(query, variable_values=variables)
      except Exception:
          # Don't handle exception, rely on legacy query
          # TODO(gst): Implement updated introspection workaround
          query = cls.LEGACY_QUERY
          response = client.execute(query, variable_values=variables)
  
      if (
          not response
          or not response.get("project")
          or not response["project"].get("sweep")
      ):
          return None
  
      sweep_response = response["project"]["sweep"]
      sweep = cls(client, entity, project, sid, attrs=sweep_response)
      sweep.runs = public.Runs(
          client,
          entity,
          project,
          order=order,
          per_page=10,
          filters={"$and": [{"sweep": sweep.id}]},
      )
  
      return sweep
  
imports: import urllib
  from typing import Optional
  from wandb_gql import gql
  import wandb
  from wandb import util
  from wandb.apis import public
  from wandb.apis.attrs import Attrs
  from wandb.sdk.lib import ipython
label_desc: Use image node_id 12 for calling the Sweep obj's underlying member method code with example usage: obj.get(cls, client, entity, project, sid, order, query) and returns: sweep, None