class_docstr: Collects metrics and sends them directly to metrics service.
class_docstr_tok: ["Collects","metrics","and","sends","them","directly","to","metrics","service","."]
docstr: Drains any remaining metrics.
docstr_tok: ["Drains","any","remaining","metrics","."]
code: def close(self):
      """Drains any remaining metrics."""
      self._drain(close=True)
  
imports: from __future__ import absolute_import
  import datetime
  import logging
  import os
  import time
  import threading
  import queue
  import dateutil.tz
  from sagemaker.session import Session
label_desc: Use image node_id 6 for calling the _SyncMetricsSink obj's underlying member method code with example usage: obj.close() without return types