def METHOD_NAME(self, access_token, project_id):
    """获取project_code
    缓存较长时间
    """
    cache_key = f"BK_DEVOPS_BCS:PROJECT_CODE:{project_id}"
    project_code = region.get(cache_key, expiration_time=3600 * 24 * 30)
    if not project_code:
        # 这里的project_id对应实际的project_id或project_code, paas_cc接口兼容了两种类型的查询
        result = paas_cc.get_project(access_token, project_id)
        if result.get("code") != 0:
            return None
        project_code = result["data"]["english_name"]
        region.set(cache_key, project_code)
    return project_code