code: def _get_expected_value(
      self,
      pred,
      true,
      sklearn_metrics,
      with_sample_weight,
      *,
      kwargs=None,
      names=None,
  ):
      true = true.numpy()
      pred = pred.numpy()
  
      sample_weight = None
      if with_sample_weight:
          sample_weight = self.sample_weight.numpy()
  
      if not isinstance(sklearn_metrics, list):
          sklearn_metrics = [sklearn_metrics]
  
      if kwargs is not None and not isinstance(kwargs, list):
          kwargs = [kwargs]
      kwargs = kwargs if kwargs is not None else repeat({})
  
      if names is not None and not isinstance(names, list):
          names = [names]
      names = (
          [func.__name__ for func in sklearn_metrics]
          if names is None
          else names
      )
  
      return {
          name: f(true, pred, sample_weight=sample_weight, **kw)
          for name, f, kw in zip(names, sklearn_metrics, kwargs)
      }
  
file_path: poutyne/tests/framework/metrics/test_sklearn_metrics.py
imports: from itertools import repeat
  from unittest import TestCase, skipIf
  import numpy
  import torch
  from torch.utils.data import DataLoader
  from poutyne import SKLearnMetrics, TensorDataset
label_desc: Use image node_id 11 for calling the SKLearnMetricsTest obj's underlying member method code with example usage: obj._get_expected_value(pred, true, sklearn_metrics, with_sample_weight) and returns: unknown