def _code_extract(code: Atom, ndx: int) -> Union[Token, Tuple[Atom]]: if isinstance(code, CodeBlock) and code.size() == 0: return Token.revert if not isinstance(code, CodeBlock): return code, ndx = abs(ndx % code.size()) return code.code_at_point(ndx),
def _code_size(code: Atom) -> Tuple[int]: if not isinstance(code, CodeBlock): return 1, return code.size(),