code: def get_parsed_context(pipeline, context_in_string):
      
      logger.debug("starting")
  
      if 'context_parser' in pipeline:
          parser_module_name = pipeline['context_parser']
          logger.debug(f"context parser found: {parser_module_name}")
          parser_module = pypyr.moduleloader.get_module(parser_module_name)
  
          try:
              logger.debug(f"running parser {parser_module_name}")
              result_context = parser_module.get_parsed_context(
                  context_in_string)
              logger.debug(f"step {parser_module_name} done")
              # Downstream steps likely to expect context not to be None, hence
              # empty rather than None.
              if result_context is None:
                  logger.debug(f"{parser_module_name} returned None. Using "
                               "empty context instead")
                  return pypyr.context.Context()
              else:
                  return pypyr.context.Context(result_context)
          except AttributeError:
              logger.error(f"The parser {parser_module_name} doesn't have a "
                           "get_parsed_context(context) function.")
              raise
      else:
          logger.debug("pipeline does not have custom context parser. Using "
                       "empty context.")
          logger.debug("done")
          # initialize to an empty dictionary because you want to be able to run
          # with no context.
          return pypyr.context.Context()
docs: Execute get_parsed_context handler if specified.
  
      Dynamically load the module specified by the context_parser key in pipeline
      dict and execute the get_parsed_context function on that module.
  
      Args:
          pipeline: dict. Pipeline object.
          context_in_string: string. Argument string used to initialize context.
  
      Returns:
          pypyr.context.Context() instance.
  
      Raises:
          AttributeError: parser specified on pipeline missing get_parsed_context
                          function.