code: def track_higher_grads(self, value):
      if not isinstance(value, bool):
          raise ValueError(
              "Expected boolean argument. Got: {}.".format(type(value))
          )
      self._track_higher_grads = value
  
imports: import abc
  from collections import OrderedDict
  from contextlib import contextmanager
  import typing
  import weakref
  import warnings
  import torch
  from .None import utils
label_desc: Use image node_id 8 for calling the _MonkeyPatchBase obj's underlying member method code with example usage: obj.track_higher_grads(value) without return types