code: def rename_project(session, project_name, new_project_name):
      # type: (Any, str, str) -> bool
      """
      Rename a project
  
      :param session: Session to send the request through
      :param project_name: Name of the project you want to rename
      :param new_project_name: New name for the project
  
      :return: True if the rename succeded and False otherwise
      """
      project_id = get_existing_project(session, project_name)
      if not project_id:
          return False
      res = session.send(
          projects.UpdateRequest(
              project=project_id, name=new_project_name
          )
      )
      if res and res.response and res.response.updated:
          return True
      return False
  
imports: import getpass
  import re
  from _socket import gethostname
  from datetime import datetime
  from typing import Optional, Any
  from ..backend_api.services import projects, queues
  from ..debugging.log import get_logger, LoggerRoot
label_desc: Use image node_id 3 for calling a global function with example usage: rename_project(session, project_name, new_project_name) and returns: False, False, True