docstr: Generate layer name like "Convolution2DFunction-10-2".
  
  The first number means rank of the layer (depth from the top),
  and the second number is for preventing duplication
  (different layer objects can have same rank)
  
  Args:
      layer (~chainer.Function_node): Function object
  Returns:
      str: A string to be used for the ``name`` field of the graph
          in the exported Caffe model.
docstr_tok: ["Generate","layer","name","like","``","Convolution2DFunction-10-2","''",".","The","first","number","means","rank","of","the","layer","(","depth","from","the","top",")",",","and","the","second","number","is","for","preventing","duplication","(","different","layer","objects","can","have","same","rank",")","Args",":","layer","(","~chainer.Function_node",")",":","Function","object","Returns",":","str",":","A","string","to","be","used","for","the","``","name","``","field","of","the","graph","in","the","exported","Caffe","model","."]
code: def _get_layer_name(self, layer):
      """Generate layer name like "Convolution2DFunction-10-2".
  
      The first number means rank of the layer (depth from the top),
      and the second number is for preventing duplication
      (different layer objects can have same rank)
  
      Args:
          layer (~chainer.Function_node): Function object
      Returns:
          str: A string to be used for the ``name`` field of the graph
              in the exported Caffe model.
  
      """
      label = "{}-{}".format(layer.label, layer.rank)
      d = self.naming_map[label]
      if layer not in d.keys():
          d[layer] = len(d) + 1
      return "{}-{}".format(label, d[layer])
  
imports: import collections
  import heapq
  import os
  import numpy
  import six
  import chainer
  from chainer import function
  from chainer import function_node
  from chainer.links.caffe.protobuf3 import caffe_pb2
  from chainer import variable
label_desc: Use image node_id 2 for calling the _RetrieveAsCaffeModel obj's underlying member method code with example usage: obj._get_layer_name(layer) and returns: str