code: def test_scatter_reduce_mean(self, device, dtype):
      for include_self in (True, False):
          for deterministic in [False, True]:
              with DeterministicGuard(deterministic):
                  self._test_scatter_base(
                      torch.Tensor.scatter_reduce_,
                      device=device,
                      dtype=dtype,
                      is_scalar=False,
                      reduction="mean",
                      unique_indices=False,
                      include_self=include_self,
                  )
  
imports: import random
  import torch
  from torch.testing import make_tensor
  from torch.testing._internal.common_utils import parametrize, run_tests, TestCase, DeterministicGuard
  from torch.testing._internal.common_device_type import instantiate_device_type_tests, onlyCPU, dtypes, dtypesIfCUDA, toleranceOverride, tol
  from torch.testing._internal.common_dtype import get_all_dtypes
label_desc: Use image node_id 13 for calling the TestScatterGather obj's underlying member method code with example usage: obj.test_scatter_reduce_mean(device, dtype) without return types