class_docstr: This :class:`TokenIndexer` represents tokens by their syntactic dependency label, as determined
  by the ``dep_`` field on ``Token``.
  
  Parameters
  ----------
  namespace : ``str``, optional (default=``dep_labels``)
      We will use this namespace in the :class:`Vocabulary` to map strings to indices.
code: def count_vocab_items(self, token, counter):
      dep_label = token.dep_
      if not dep_label:
          if token.text not in self._logged_errors:
              logger.warning(
                  "Token had no dependency label: %s", token.text
              )
              self._logged_errors.add(token.text)
          dep_label = "NONE"
      counter[self.namespace][dep_label] += 1
  
file_path: magnitude/pymagnitude/third_party/allennlp/data/token_indexers/dep_label_indexer.py
imports: from __future__ import absolute_import
  import logging
  from allennlp.common.util import pad_sequence_to_length
  from allennlp.data.vocabulary import Vocabulary
  from allennlp.data.tokenizers.token import Token
  from allennlp.data.token_indexers.token_indexer import TokenIndexer
label_desc: Use image node_id 2 for calling the DepLabelIndexer obj's underlying member method code with example usage: obj.count_vocab_items(token, counter) without return types