code: def _add_to_counters(counters, element):
      return counters.set(element, counters.get(element, 0) + 1)
  
imports: from collections.abc import Container, Iterable, Sized, Hashable
  from functools import reduce
  from typing import Generic, TypeVar
  from pyrsistent._pmap import pmap
label_desc: Use image node_id 1 for calling a global function with example usage: _add_to_counters(counters, element) and returns: counters