class_docstr: Adds integration with ya, helps in finding dependencies
class_docstr_tok: ["Adds","integration","with","ya",",","helps","in","finding","dependencies"]
code: def set_metric_value(self, name, val):
      from library.python.pytest.plugins.metrics import test_metrics
  
      node_id = self.get_test_item_node_id()
      if node_id not in test_metrics.metrics:
          test_metrics[node_id] = {}
  
      test_metrics[node_id][name] = val
  
imports: import os
  import sys
  import logging
  import json
  import six
  from .tools import to_str
  from .external import ExternalDataInfo
label_desc: Use image node_id 21 for calling the Ya obj's underlying member method code with example usage: obj.set_metric_value(name, val) without return types