code: def command(self, rs_id, command, *args):
          
          rs = self._storage[rs_id]
          try:
              return getattr(rs, command)(*args)
          except AttributeError:
              raise ValueError("Cannot issue the command %r to ReplicaSet %s"
                               % (command, rs_id))
docs: Call a ReplicaSet method.