code: def classidx(classname):
      return dict((k, i) for (i, k) in enumerate(classnames))[classname]
  
file_path: tensornets/tensornets/datasets/coco.py
imports: from __future__ import division
  import os
  import json
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: classidx(classname) and returns: dict