code: def _is_nested(x: Any) -> bool:
      """Returns whether a value is nested."""
      return isinstance(x, dict) or dataclasses.is_dataclass(x)
  
imports: import dataclasses
  from typing import Any, Dict, Tuple, Union, Iterator, List, Optional
label_desc: Use image node_id 2 for calling a global function with example usage: _is_nested(x) and returns: unknown