code: def get_members_in_state(self, state):
          
          members = self.run_command(command='replSetGetStatus', is_eval=False)['members']
          return [member['name'] for member in members if member['state'] == state]
docs: return all members of replica set in specific state