class_docstr: A sensor applies a continuous sequence of numerical values
  to a set of associated metrics. For example a sensor on
  message size would record a sequence of message sizes using
  the `record(double)` api and would maintain a set
  of metrics about request sizes such as the average or max.
class_docstr_tok: ["A","sensor","applies","a","continuous","sequence","of","numerical","values","to","a","set","of","associated","metrics",".","For","example","a","sensor","on","message","size","would","record","a","sequence","of","message","sizes","using","the","`","record","(","double",")","`","api","and","would","maintain","a","set","of","metrics","about","request","sizes","such","as","the","average","or","max","."]
docstr: Return True if the Sensor is eligible for removal due to inactivity.
docstr_tok: ["Return","True","if","the","Sensor","is","eligible","for","removal","due","to","inactivity","."]
code: def has_expired(self):
      """
      Return True if the Sensor is eligible for removal due to inactivity.
      """
      return (
          time.time() * 1000 - self._last_record_time
      ) > self._inactive_sensor_expiration_time_ms
  
file_path: kafka-python/kafka/metrics/stats/sensor.py
imports: from __future__ import absolute_import
  import threading
  import time
  from kafka.errors import QuotaViolationError
  from kafka.metrics import KafkaMetric
label_desc: Use image node_id 9 for calling the Sensor obj's underlying member method code with example usage: obj.has_expired() and returns: unknown