message: Suppress the warning on generator functions. They are rare, and when they occur it's usually in library code that the user has no control over.
diff: @@ -153,9 +153,6 @@ def is_allowlisted(
  # The check for __code__ below is because isgeneratorfunction crashes
  # without one.
  if hasattr(o, '__code__') and tf_inspect.isgeneratorfunction(o):
  - logging.warn(
  - 'Entity %s appears to be a generator function. It will not be converted'
  - ' by AutoGraph.', o)
  logging.log(2, 'Allowlisted: %s: generator functions are not converted', o)
  return True
  