code: def set_project(project_qualified_name):
      """Setups `Neptune client library <https://github.com/neptune-ai/neptune-client>`_ to work with specific project.
  
      | Sets value of global variable ``project`` to :class:`~neptune.projects.Project` object
        that can be used to create or list experiments, notebooks, etc.
      | If Neptune client library was not previously initialized via :meth:`~neptune.init` call
        it will be initialized with API token taken from ``NEPTUNE_API_TOKEN`` environment variable.
  
      Args:
          project_qualified_name (:obj:`str`):
              Qualified name of a project in a form of ``namespace/project_name``.
  
      Returns:
          :class:`~neptune.projects.Project` object that is used to create or list experiments, notebooks, etc.
  
      Raises:
          `NeptuneMissingApiTokenException`: When library was not initialized previously by ``init`` call and
              ``NEPTUNE_API_TOKEN`` environment variable is not set.
  
      Examples:
  
          .. code:: python3
  
              # minimal invoke
              neptune.set_project('jack/sandbox')
      """
  
      with __lock:
          global session, project
  
          if session is None:
              init(project_qualified_name=project_qualified_name)
          else:
              project = session.get_project(project_qualified_name)
  
          return project
  
imports: import logging
  import os
  import threading
  from neptune.common.utils import assure_project_qualified_name
  from neptune.legacy import constants, envs
  from neptune.legacy.exceptions import InvalidNeptuneBackend, NeptuneIncorrectImportException, NeptuneUninitializedException
  from neptune.legacy.internal.api_clients.backend_factory import backend_factory
  from neptune.legacy.internal.utils.deprecation import legacy_client_deprecation
  from neptune.legacy.projects import Project
  from neptune.legacy.sessions import Session
label_desc: Use image node_id 3 for calling a global function with example usage: set_project(project_qualified_name) and returns: project