code: def create_ctx(local, context_name):
      from fate.arch import Context
      from fate.arch.computing.standalone import CSession
      from fate.arch.federation.standalone import StandaloneFederation
      import logging
  
      # prepare log
      logger = logging.getLogger()
      logger.setLevel(logging.INFO)
      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)
      # init fate context
      computing = CSession(data_dir="./cession_dir")
      return Context(
          computing=computing,
          federation=StandaloneFederation(
              computing, context_name, local, [guest, host]
          ),
      )
  
imports: import sys
  import torch
  import torch
  from datetime import datetime
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: create_ctx(local, context_name) and returns: Context