def snake2camel(string: str):
    """Convert snake_case to CamelCase.

    Copied from
    https://github.com/fastai/fastcore/blob/0df9c4a8e9a1756fe26fccffab8976195563c8a9/fastcore/basics.py
    """
    return "".join(string.title().split("_"))