docstr: Called by libcurl to schedule a timeout.
docstr_tok: ["Called","by","libcurl","to","schedule","a","timeout","."]
code: def _set_timeout(self, msecs: int) -> None:
      """Called by libcurl to schedule a timeout."""
      if self._timeout is not None:
          self.io_loop.remove_timeout(self._timeout)
      self._timeout = self.io_loop.add_timeout(
          self.io_loop.time() + msecs / 1000.0, self._handle_timeout
      )
  
imports: import collections
  import functools
  import logging
  import pycurl
  import threading
  import time
  from io import BytesIO
  from tornado import httputil
  from tornado import ioloop
  from tornado.escape import utf8, native_str
  from tornado.httpclient import HTTPRequest, HTTPResponse, HTTPError, AsyncHTTPClient, main
  from tornado.log import app_log
  from typing import Dict, Any, Callable, Union, Optional
  import typing
label_desc: Use image node_id 5 for calling the CurlAsyncHTTPClient obj's underlying member method code with example usage: obj._set_timeout(msecs) without return types