import sys
NAME = 'b'
assert 'tensorflow' not in sys.modules
assert 'dog' not in sys.modules
import dog
assert 'dog' in sys.modules

4544f091fabe4fef126b1734938ba1fbe72892e4
<mask token>

<mask token>
assert 'tensorflow' not in sys.modules
assert 'dog' not in sys.modules
<mask token>
assert 'dog' in sys.modules

<mask token>
NAME = 'b'
assert 'tensorflow' not in sys.modules
assert 'dog' not in sys.modules
<mask token>
assert 'dog' in sys.modules

import sys
NAME = 'b'
assert 'tensorflow' not in sys.modules
assert 'dog' not in sys.modules
import dog
assert 'dog' in sys.modules
