code: def run_config(self, project, run=None, entity=None):
          
          query = gql('''
          query Model($name: String!, $entity: String!, $run: String!) {
              model(name: $name, entityName: $entity) {
                  bucket(name: $run) {
                      config
                      commit
                      patch
                      files(names: ["wandb-metadata.json"]) {
                          edges {
                              node {
                                  url
                              }
                          }
                      }
                  }
              }
          }
          ''')
  
          response = self.gql(query, variable_values={
              'name': project, 'run': run, 'entity': entity
          })
          if response['model'] == None:
              raise ValueError("Run {}/{}/{} not found".format(entity, project, run) )
          run = response['model']['bucket']
          commit = run['commit']
          patch = run['patch']
          config = json.loads(run['config'] or '{}')
          if len(run['files']['edges']) > 0:
              url = run['files']['edges'][0]['node']['url']
              res = requests.get(url)
              res.raise_for_status()
              metadata = res.json()
          else:
              metadata = {}
          return (commit, config, patch, metadata)
docs: Get the relevant configs for a run
  
          Args:
              project (str): The project to download, (can include bucket)
              run (str, optional): The run to download
              entity (str, optional): The entity to scope this project to.