def METHOD_NAME() -> Callable[[Mapping], State]:
    """
    Example input data:
    {
        "get": {
            # This maps data being returned by get
            "path/to/item": {
                "some_key": "content",
                "other_content": "content",
            },
            "other/path": {
                "other": "data",
            },
        },
        "ls": [
            "/path/item1",
            "/path/item2",
        ]
    }
    """
    def builder(data: Mapping) -> State:
        def get(key: str, *args) -> dict:
            try:
                return data["get"][key]
            except KeyError:
                if args:
                    return args[0]
                raise
        def __getitem__(self, key: str) -> dict:
            return get(key)
        state = create_autospec(spec=State)
        state.get = get
        state.__getitem__ = __getitem__
        state.ls.side_effect = [data.get("ls", [])]
        return state
    return builder