code: def is_stdlib_name(modname):
      
      if imp.is_builtin(modname) != 0:
          return True
  
      module = sys.modules.get(modname)
      if module is None:
          return False
  
      # six installs crap with no __file__
      modpath = os.path.abspath(getattr(module, '__file__', ''))
      return is_stdlib_path(modpath)
docs: Return :data:`True` if `modname` appears to come from the standard
      library.