class_docstr: Usage:
  
      selector = selectors.SelectSelector()
      loop = asyncio.SelectorEventLoop(InputHookSelector(selector, inputhook))
      asyncio.set_event_loop(loop)
class_docstr_tok: ["Usage",":","selector","=","selectors.SelectSelector","(",")","loop","=","asyncio.SelectorEventLoop","(","InputHookSelector","(","selector",",","inputhook",")",")","asyncio.set_event_loop","(","loop",")"]
code: def register(
      self,
      fileobj: FileDescriptorLike,
      events: _EventMask,
      data: Any = None,
  ) -> SelectorKey:
      return self.selector.register(fileobj, events, data=data)
  
imports: from __future__ import annotations
  import asyncio
  import os
  import select
  import selectors
  import sys
  import threading
  from asyncio import AbstractEventLoop, get_running_loop
  from selectors import BaseSelector, SelectorKey
  from typing import TYPE_CHECKING, Any, Callable, Mapping
label_desc: Use image node_id 2 for calling the InputHookSelector obj's underlying member method code with example usage: obj.register(fileobj, events, data) and returns: self