docs: def apply_filter_list(func, obj):
      """Apply `func` to list or tuple `obj` element-wise and directly otherwise."""
      if isinstance(obj, (list, tuple)):
          return [func(item) for item in obj]
      return func(obj)