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]
          ),
      )
  
imports: import pandas
  import sys
  from fate.arch.dataframe import PandasReader
  from fate.ml.glm.homo.lr.client import HomoLRClient
  from fate.ml.glm.homo.lr.server import HomoLRServer
label_desc: Use image node_id 1 for calling a global function with example usage: create_ctx(local) and returns: Context