Hello!
Here's a minimal example, applying auto-fix to the following:
import os # F401
def function():
import os # F811
print(os.name)
Results in the following:
def function():
print(os.name) # F821, here, "os" is not defined
This makes for a fix that breaks the code.