def is_standard_module(modname, std_path=None):
modname = modname.split("<STR_LIT:.>")[<NUM_LIT:0>]<EOL>try:<EOL><INDENT>filename = file_from_modpath([modname])<EOL><DEDENT>except ImportError:<EOL><INDENT>return False<EOL><DEDENT>if filename is None:<EOL><INDENT>return not util.is_namespace(modname)<EOL><DEDENT>filename = _normalize_path(filename)<EOL>for path in EXT_LIB_DIRS:<EOL><INDENT>if filename.startswith(_cache_normalize_path(path)):<EOL><INDENT>return False<EOL><DEDENT><DEDENT>if std_path is None:<EOL><INDENT>std_path = STD_LIB_DIRS<EOL><DEDENT>for path in std_path:<EOL><INDENT>if filename.startswith(_cache_normalize_path(path)):<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
try to guess if a module is a standard python module (by default,
    see `std_path` parameter's description)

    :type modname: str
    :param modname: name of the module we are interested in

    :type std_path: list(str) or tuple(str)
    :param std_path: list of path considered has standard


    :rtype: bool
    :return:
      true if the module:
      - is located on the path listed in one of the directory in `std_path`
      - is a built-in module