class_docstr: Profiling information about a single function.
class_docstr_tok: ["Profiling","information","about","a","single","function","."]
code: def append_kernel(self, name, device, duration):
      assert self.device_type == DeviceType.CPU
      self.kernels.append(Kernel(name, device, duration))
  
imports: import bisect
  import itertools
  import math
  from collections import defaultdict, namedtuple
  from operator import attrgetter
  from typing import Any, Dict, List, Optional, Tuple
  import torch
  from torch.autograd import DeviceType
label_desc: Use image node_id 2 for calling the FunctionEvent obj's underlying member method code with example usage: obj.append_kernel(name, device, duration) without return types