import sys
import os
import json

print("Before deport:")
print(f"  os loaded: {'os' in dir()}")
print(f"  json loaded: {'json' in dir()}")
print(f"  'os' in sys.modules: {'os' in sys.modules}")

import other

deport os, json

print("\nAfter deport:")
print(f"  os loaded: {'os' in dir()}")
print(f"  json loaded: {'json' in dir()}")
print(f"  'os' in sys.modules: {'os' in sys.modules}")

import os

print(f"\nAfter re-import: os loaded: {'os' in dir()}")
