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