class_docstr: Base Task, shouldn't be used directly.
class_docstr_tok: ["Base","Task",",","should","n't","be","used","directly","."]
code: def _assure_metrics(self):
      if not self._metrics:
          first_available = self.list_available_metrics()[0]
          self._metrics = self._convert_metrics(first_available)
  
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 4 for calling the BaseTask obj's underlying member method code with example usage: obj._assure_metrics() without return types