code: def _parse_loss_string(string):
      if string == "ns":
          return loss_name.ns
      if string == "hs":
          return loss_name.hs
      if string == "softmax":
          return loss_name.softmax
      if string == "ova":
          return loss_name.ova
      else:
          raise ValueError("Unrecognized loss name")
  
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 2 for calling a global function with example usage: _parse_loss_string(string) and returns: loss_name, loss_name, loss_name, loss_name