code: def chain_idx_get(
      container: Union[Sequence, Mapping],
      key_list: Sequence,
      default: Any,
  ) -> Any:
      """Get an element at a path in an arbitrarily nested container, return default if not found.
  
      Args:
          container (Union[Sequence, Mapping]): container from which to try to retrieve element.
          key_list (Sequence): list of index and/or keys specifying the path.
          default (Any): default value to return if no value exists at the specified path.
  
      Returns:
          Element found at the specified path, or default value if no entry is found at that path.
  
      """
      try:
          return chain_idx(container, key_list)
      except (KeyError, IndexError, TypeError):
          return default
  
imports: import math
  import itertools
  from dataclasses import replace
  from typing import Mapping, Any, Sequence, Iterable, Iterator, Union, Tuple, Dict, Set
label_desc: Use image node_id 2 for calling a global function with example usage: chain_idx_get(container, key_list, default) and returns: chain_idx, default