class_docstr: Test class for `LogCoshError` metric.
class_docstr_tok: ["Test","class","for","`","LogCoshError","`","metric","."]
docstr: Test functional implementation of metric.
docstr_tok: ["Test","functional","implementation","of","metric","."]
code: def test_log_cosh_error_functional(self, preds, target):
      """Test functional implementation of metric."""
      self.run_functional_metric_test(
          preds=preds,
          target=target,
          metric_functional=log_cosh_error,
          reference_metric=_sk_log_cosh_error,
      )
  
file_path: torchmetrics/tests/unittests/regression/test_log_cosh_error.py
imports: from functools import partial
  import numpy
  import pytest
  import torch
  from torchmetrics.functional.regression.log_cosh import log_cosh_error
  from torchmetrics.regression.log_cosh import LogCoshError
  from unittests import BATCH_SIZE, NUM_BATCHES, _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 2 for calling the TestLogCoshError obj's underlying member method code with example usage: obj.test_log_cosh_error_functional(preds, target) without return types