from typing import List


def load_grid_from_string(grid_str: str) -> List[List[int]]:
    """Returns a grid by loading a grid passed as a string."""
    array = [int(cell) for cell in grid_str.split()]
    grid = [[int(cell) for cell in array[i : i + 3]] for i in range(0, len(array), 3)]
    return grid