from typing import Any def is_collection(value: Any) -> bool: """Check if value is a collection of items or not. Args: value: Value to check. Returns: Is collection or not. """ return isinstance(value, (list, set, tuple))