code: def supported_activities():
      """
      Returns a set of supported profiler tracing activities.
  
      Note: profiler uses CUPTI library to trace on-device CUDA kernels.
      In case when CUDA is enabled but CUPTI is not available, passing
      ``ProfilerActivity.CUDA`` to profiler results in using the legacy CUDA
      profiling code (same as in the legacy ``torch.autograd.profiler``).
      This, in turn, results in including CUDA time in the profiler table output,
      but not in the JSON trace.
      """
      return torch.autograd._supported_activities()
  
imports: import gzip
  import json
  import os
  import tempfile
  from enum import Enum
  from functools import partial
  from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple
  from warnings import warn
  import torch
  import torch.autograd.profiler
  from torch._C import _get_privateuse1_backend_name
  from torch._C._profiler import _add_execution_trace_observer, _disable_execution_trace_observer, _enable_execution_trace_observer, _ExperimentalConfig, _remove_execution_trace_observer
  from torch.autograd import kineto_available, ProfilerActivity
  from torch.profiler._memory_profiler import MemoryProfile, MemoryProfileTimeline
label_desc: Use image node_id 1 for calling a global function with example usage: supported_activities() and returns: torch