code: def check_if_enumerated(guide_trace):
      enumerated_sites = [
          name
          for name, site in guide_trace.nodes.items()
          if site["type"] == "sample" and site["infer"].get("enumerate")
      ]
      if enumerated_sites:
          warnings.warn(
              "\n".join(
                  [
                      "Found sample sites configured for enumeration:"
                      ", ".join(enumerated_sites),
                      "If you want to enumerate sites, you need to use TraceEnum_ELBO instead.",
                  ]
              )
          )
  
imports: import functools
  import math
  import numbers
  import random
  import sys
  import timeit
  import warnings
  from collections import defaultdict
  from contextlib import contextmanager
  from itertools import zip_longest
  import numpy
  import torch
  from pyro.poutine.util import site_is_subsample
label_desc: Use image node_id 14 for calling a global function with example usage: check_if_enumerated(guide_trace) without return types