class_docstr: Sentinel backed connection pool.
  
  If ``check_connection`` flag is set to True, SentinelManagedConnection
  sends a PING command right after establishing the connection.
class_docstr_tok: ["Sentinel","backed","connection","pool",".","If","``","check_connection","``","flag","is","set","to","True",",","SentinelManagedConnection","sends","a","PING","command","right","after","establishing","the","connection","."]
code: def owns_connection(self, connection):
      check = not self.is_master or (
          self.is_master
          and self.master_address == (connection.host, connection.port)
      )
      parent = super()
      return check and parent.owns_connection(connection)
  
imports: import random
  import weakref
  from typing import Optional
  from redis.client import Redis
  from redis.commands import SentinelCommands
  from redis.connection import Connection, ConnectionPool, SSLConnection
  from redis.exceptions import ConnectionError, ReadOnlyError, ResponseError, TimeoutError
  from redis.utils import str_if_bytes
label_desc: Use image node_id 5 for calling the SentinelConnectionPool obj's underlying member method code with example usage: obj.owns_connection(connection) and returns: unknown