def lookup_imagenet_labels(indices):
global _CLASS_INDEX<EOL>if _CLASS_INDEX is None:<EOL><INDENT>with open(os.path.join(os.path.dirname(__file__), '<STR_LIT>')) as f:<EOL><INDENT>_CLASS_INDEX = json.load(f)<EOL><DEDENT><DEDENT>indices = listify(indices)<EOL>return [_CLASS_INDEX[str(idx)][<NUM_LIT:1>] for idx in indices]<EOL>
Utility function to return the image net label for the final `dense` layer output index.

    Args:
        indices: Could be a single value or an array of indices whose labels should be looked up.

    Returns:
        Image net label corresponding to the image category.