def METHOD_NAME(inputs, directory):
    """
    Example:
        export PYTHONPATH=`pwd`
        python -m linkml.utils.execute_tutorial -d /tmp/tutorial/ docs/intro/tutorial01.md
    """
    logging.basicConfig(level=logging.INFO)
    errs = []
    for input in inputs:
        logging.info(f"INPUT={input}")
        blocks = parse_file_to_blocks(input)
        print(f"## {len(blocks)} Blocks")
        localdir = Path(input).stem
        subdir = PurePath(directory, localdir)
        input_errs = execute_blocks(str(subdir), blocks)
        if len(input_errs) > 0:
            logging.error(f"TUTORIAL {input} FAILURES: {len(input_errs)}")
        errs += input_errs
    logging.info(f"Errors = {len(errs)}")
    if len(errs) > 0:
        logging.error(f"Encountered {len(errs)} Errors")
        for err in errs:
            logging.error(f"Error: {err}")
        sys.exit(1)