code: def test_1d_input_allowed():
      """Check that both input of the form [N,] and [N,1] is allowed with default num_outputs argument."""
      assert isinstance(
          pearson_corrcoef(torch.randn(10, 1), torch.randn(10, 1)),
          torch.Tensor,
      )
      assert isinstance(
          pearson_corrcoef(torch.randn(10), torch.randn(10)),
          torch.Tensor,
      )
  
imports: from functools import partial
  import pytest
  import torch
  from scipy.stats import pearsonr
  from torchmetrics.functional.regression.pearson import pearson_corrcoef
  from torchmetrics.regression.pearson import PearsonCorrCoef, _final_aggregation
  from unittests import BATCH_SIZE, EXTRA_DIM, NUM_BATCHES, _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 3 for calling a global function with example usage: test_1d_input_allowed() without return types