code: def _parse_args(args: str) -> dict:
      str_args_list = args.split(",")
      kwargs = {}
      for str_arg in str_args_list:
          if str_arg:
              arg_value_pairs = str_arg.split("=")
              kwargs[arg_value_pairs[0].strip()] = ast.literal_eval(
                  arg_value_pairs[1].strip()
              )
      return kwargs
  
imports: import ast
  import logging
  import re
  from typing import Tuple
  import networkx
  import numpy
  import scipy.stats
  from dowhy.gcm import AdditiveNoiseModel, EmpiricalDistribution, ScipyDistribution, StructuralCausalModel
  from dowhy.gcm.causal_mechanisms import StochasticModel
  from dowhy.gcm.causal_models import PARENTS_DURING_FIT
  from dowhy.gcm.ml.prediction_model import PredictionModel
  from dowhy.gcm.util.general import shape_into_2d
  from dowhy.graph import get_ordered_predecessors
label_desc: Use image node_id 2 for calling a global function with example usage: _parse_args(args) and returns: kwargs