def _is_indexed_like(obj, axes, axis: int) -> bool:
    if isinstance(obj, Series):
        if (len(axes) > 1):
            return False
        return obj.axes[axis].equals(axes[axis])
    elif isinstance(obj, DataFrame):
        return obj.axes[axis].equals(axes[axis])
    return False
def _is_indexed_like(obj, axes, axis: int) -> bool:
    if isinstance(obj, Series):
        if (len(axes) > 1):
            return False
        return obj.axes[axis].equals(axes[axis])
    elif isinstance(obj, DataFrame):
        return obj.axes[axis].equals(axes[axis])
    return False