code: def dep(doclike: types.DocLike) -> dict[str, int]:
      """
      Count the number of times each syntactic dependency relation appears
      as a token annotation in ``doclike``.
  
      Args:
          doclike
  
      Returns:
          Mapping of dependency relation to count of occurrence.
      """
      return dict(collections.Counter(tok.dep_ for tok in doclike))
  
imports: import collections
  import collections.abc
  from ..None import types
label_desc: Use image node_id 4 for calling a global function with example usage: dep(doclike) and returns: dict