code: def get_project(self, projectname):
          
          cmd = ["list", "accounts", "where", "name=%s" % projectname]
          results = self._read_output(cmd)
  
          if len(results) == 0:
              return None
          elif len(results) > 1:
              logger.error(
                  "Command returned multiple results for '%s'." % projectname)
              raise RuntimeError(
                  "Command returned multiple results for '%s'." % projectname)
  
          the_result = results[0]
          the_project = the_result["Account"]
          if projectname.lower() != the_project.lower():
              logger.error(
                  "We expected projectname '%s' "
                  "but got projectname '%s'." % (projectname, the_project))
              raise RuntimeError(
                  "We expected projectname '%s' "
                  "but got projectname '%s'." % (projectname, the_project))
  
          return the_result
docs: Get the project details from Slurm.