def possible_import_patterns(modname):
    """
    does not support from x import *
    does not support from x import z, y

    Example:
        >>> # DISABLE_DOCTEST
        >>> import utool as ut
        >>> modname = 'package.submod.submod2.module'
        >>> result = ut.repr3(ut.possible_import_patterns(modname))
        >>> print(result)
        [
            'import\\spackage.submod.submod2.module',
            'from\\spackage\\.submod\\.submod2\\simportmodule',
        ]
    """
    # common regexes
    WS = r'\s'
    import_ = 'import'
    from_ = 'from'
    dot_ = r'\.'
    patterns = [import_ + WS + modname]
    if '.' in modname:
        parts = modname.split('.')
        modpart = dot_.join(parts[0:-1])
        imppart = parts[-1]
        patterns += [from_ + WS + modpart + WS + import_ + imppart]
    NONSTANDARD = False
    if NONSTANDARD:
        if '.' in modname:
            for i in range(1, len(parts) - 1):
                modpart = '.'.join(parts[i:-1])
                imppart = parts[-1]
                patterns += [from_ + WS + modpart + WS + import_ + imppart]
            imppart = parts[-1]
            patterns += [import_ + WS + imppart]
    return patterns