class_docstr: Base Task, shouldn't be used directly.
class_docstr_tok: ["Base","Task",",","should","n't","be","used","directly","."]
code: def _assure_loss(self):
      if not self._loss:
          self._loss = self.list_available_losses()[0]
  
file_path: MatchZoo/matchzoo/engine/base_task.py
imports: import typing
  import abc
  from matchzoo.engine import base_metric
  from matchzoo.engine import parse_metric
label_desc: Use image node_id 3 for calling the BaseTask obj's underlying member method code with example usage: obj._assure_loss() without return types