code: def is_running(self, port):
          
          try:
              con = self.client('localhost:%s' % port)
              con.admin.command('ping')
              return True
          except (AutoReconnect, ConnectionFailure, OperationFailure):
              # Catch OperationFailure to work around SERVER-31916.
              return False
docs: Return True if a host on a specific port is running.