class_docstr: This class defines the API to inspect models and should not be used to
  create objects. It will be returned by functions such as load_model or
  train.
  
  In general this API assumes to be given only unicode for Python2 and the
  Python3 equvalent called str for any string-like arguments. All unicode
  strings are then encoded as UTF-8 and fed to the fastText C++ API.
class_docstr_tok: ["This","class","defines","the","API","to","inspect","models","and","should","not","be","used","to","create","objects",".","It","will","be","returned","by","functions","such","as","load_model","or","train",".","In","general","this","API","assumes","to","be","given","only","unicode","for","Python2","and","the","Python3","equvalent","called","str","for","any","string-like","arguments",".","All","unicode","strings","are","then","encoded","as","UTF-8","and","fed","to","the","fastText","C++","API","."]
docstr: Return the precision and recall score for each label.
  
  The returned value is a dictionary, where the key is the label.
  For example:
  f.test_label(...)
  {'__label__italian-cuisine' : {'precision' : 0.7, 'recall' : 0.74}}
code: def test_label(self, path, k=1, threshold=0.0):
      """
      Return the precision and recall score for each label.
  
      The returned value is a dictionary, where the key is the label.
      For example:
      f.test_label(...)
      {'__label__italian-cuisine' : {'precision' : 0.7, 'recall' : 0.74}}
      """
      return self.f.testLabel(path, k, threshold)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import fasttext_pybind
  import numpy
  import multiprocessing
  import sys
  from itertools import chain
label_desc: Use image node_id 22 for calling the _FastText obj's underlying member method code with example usage: obj.test_label(path, k, threshold) and returns: self