def METHOD_NAME(split_name: str) -> Sequence[Any]:
    slice_match = re.match(r"(.*)\[(-?[0-9]*:-?[0-9]*)\]", split_name)
    if slice_match is None:
        return input[split_name]
    else:
        split_name = slice_match[1]
        slice_args = [int(a) if len(a) > 0 else None for a in slice_match[2].split(":")]
        return SlicedSequence(input[split_name], slice(*slice_args))