original_docstring: Generate the leaf-node's DOCUMENTATION.
      Args:
          leaf_infos: The result of get_leafinfos_from_xml_dict().
      Returns:
          A dict.The leaf-node's DOCUMENTATION.
          The leaf-node's DOCUMENTATION has (type, default, required) attribution which come from leaf_info.
      
docstring: Generate the leaf-node's DOCUMENTATION.
docstring_tokens: Generate the leaf - node ' s DOCUMENTATION .
code: def put_doc_type(leaf_info):
      """Generate the leaf-node's DOCUMENTATION.
      Args:
          leaf_infos: The result of get_leafinfos_from_xml_dict().
      Returns:
          A dict.The leaf-node's DOCUMENTATION.
          The leaf-node's DOCUMENTATION has (type, default, required) attribution which come from leaf_info.
      """
      dic = dict()
      try:
          if leaf_info['type'] in constant.BASE_INTEGER_TYPES:
              dic['type'] = 'int'
          elif leaf_info['type'] in ("union", "identityref", "empty", "string"):
              dic['type'] = 'str'
          elif leaf_info['type'] == "enumeration":
              dic['type'] = 'enum'
          elif leaf_info['type'] == "boolean":
              dic['type'] = 'bool'
      except:
          print(leaf_info)
      return dic
code_tokens: def put_doc_type ( leaf_info ) : dic = dict ( ) try : if leaf_info [ 'type' ] in constant . BASE_INTEGER_TYPES : dic [ 'type' ] = 'int' elif leaf_info [ 'type' ] in ( "union" , "identityref" , "empty" , "string" ) : dic [ 'type' ] = 'str' elif leaf_info [ 'type' ] == "enumeration" : dic [ 'type' ] = 'enum' elif leaf_info [ 'type' ] == "boolean" : dic [ 'type' ] = 'bool' except : print ( leaf_info ) return dic
short_docstring: Generate the leaf-node's DOCUMENTATION.
short_docstring_tokens: Generate the leaf - node ' s DOCUMENTATION .
comment: """Generate the leaf-node's DOCUMENTATION.
      Args:
          leaf_infos: The result of get_leafinfos_from_xml_dict().
      Returns:
          A dict.The leaf-node's DOCUMENTATION.
          The leaf-node's DOCUMENTATION has (type, default, required) attribution which come from leaf_info.
      """