def METHOD_NAME(token, curr_dir: str, branching_factor: int, depth: int):
    if depth > 2:
        return
    curr_dir = _normalize_remote_path(curr_dir)
    for _ in range(branching_factor):
        name = _random_name(10)
        if not curr_dir:
            remote_path = name
        else:
            remote_path = f"{curr_dir}/{name}"
        operation = secrets.choice(["mkdir", "touch"])
        _cmd = ["latch", operation, remote_path]
        _run_and_verify(_cmd, "Success")
        assert _file_exists(token, curr_dir, name)
        if operation == "mkdir":
            METHOD_NAME(token, remote_path, branching_factor, depth + 1)
        _cmd = ["latch", "rm", remote_path]
        _run_and_verify(_cmd, "Success")