code: def test_accumulator_detached():
      mpd = MeanPairwiseDistance()
  
      y_pred = torch.tensor(
          [[3.0, 4.0], [-3.0, -4.0]], requires_grad=True
      )
      y = torch.zeros(2, 2)
      mpd.update((y_pred, y))
  
      assert not mpd._sum_of_distances.requires_grad
  
imports: import os
  import numpy
  import pytest
  import torch
  import ignite.distributed
  from ignite.exceptions import NotComputableError
  from ignite.metrics import MeanPairwiseDistance
label_desc: Use image node_id 6 for calling a global function with example usage: test_accumulator_detached() without return types