This function converts an object into a list of iterables, where each iterable is a list of elements. The function is generic and can be extended for different classes.
as_iterables(x, ...)a list of iterables, where each iterable is a list of elements
the input object to be converted
additional arguments (not used)
This method converts an AxisNames object into a list of iterables.
Each element in the AxisNames is processed to extract its name or
constant value. If the element is a ConstantAstNode with a count of
1, it is converted to an empty list. Otherwise, it is wrapped in
a list. If the element is a NamedAxisAstNode, its name is extracted.
Regular AxisNames that are nested will be unclassed