docstr: List all spaces in a project
  Return format:
      [{"name": "string",
        "organizationUuid": "string",
        "uuid": "string",
        "projectUuid": "string",
        "pinnedListUuid": "string",
        "pinnedListOrder": 0,
        "isPrivate": true,
        "dashboardCount": 0,
        "chartCount": 0,
        "access": [
            "string" ]}]
docstr_tok: ["List","all","spaces","in","a","project","Return","format",":","[","{","``","name","''",":","``","string","''",",","``","organizationUuid","''",":","``","string","''",",","``","uuid","''",":","``","string","''",",","``","projectUuid","''",":","``","string","''",",","``","pinnedListUuid","''",":","``","string","''",",","``","pinnedListOrder","''",":","0",",","``","isPrivate","''",":","true",",","``","dashboardCount","''",":","0",",","``","chartCount","''",":","0",",","``","access","''",":","[","``","string","''","]","}","]"]
code: def get_spaces_in_project(self, project_uuid: str):
      """
      List all spaces in a project
      Return format:
          [{"name": "string",
            "organizationUuid": "string",
            "uuid": "string",
            "projectUuid": "string",
            "pinnedListUuid": "string",
            "pinnedListOrder": 0,
            "isPrivate": true,
            "dashboardCount": 0,
            "chartCount": 0,
            "access": [
                "string" ]}]
      """
      resp = self._request("get", f"projects/{project_uuid}/spaces")
      if resp.ok:
          return resp.json()["results"]
      return []
  
imports: import requests
  from urllib.parse import urljoin
label_desc: Use image node_id 10 for calling the Lightdash obj's underlying member method code with example usage: obj.get_spaces_in_project(project_uuid) and returns: list, resp