code: def _resolve_import(name):
      
      if name in sys.modules:
          return getattr(sys.modules[name], '__file__', name + '.so')
      return _resolve_import_versioned(name)
docs: Helper function for resolve_import.