code: def create_ctx(local):
      from fate.arch import Context
      from fate.arch.computing.backends.standalone import CSession
      from fate.arch.federation.backends.standalone import (
          StandaloneFederation,
      )
      import logging
  
      logger = logging.getLogger()
      logger.setLevel(logging.DEBUG)
  
      console_handler = logging.StreamHandler()
      console_handler.setLevel(logging.DEBUG)
  
      formatter = logging.Formatter(
          "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
      )
      console_handler.setFormatter(formatter)
  
      logger.addHandler(console_handler)
      computing = CSession()
      return Context(
          computing=computing,
          federation=StandaloneFederation(
              computing, name, local, [guest, host, arbiter]
          ),
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: create_ctx(local) and returns: Context