Reports invalid uses of lazy imports introduced by
PEP 810.
The following uses are flagged:
lazy import placed inside a function, class, or
try body — lazy imports must appear at
the module level;
lazy from ... import * — star imports cannot be
lazy;
lazy from __future__ import ... —
__future__ imports cannot be lazy.
Example:
def f():
lazy import os # lazy imports must appear at module level