code: def list(self, device=values.unset, sim=values.unset, status=values.unset,
               direction=values.unset, limit=None, page_size=None):
          
          return list(self.stream(
              device=device,
              sim=sim,
              status=status,
              direction=direction,
              limit=limit,
              page_size=page_size,
          ))
docs: Lists CommandInstance records from the API as a list.
          Unlike stream(), this operation is eager and will load `limit` records into
          memory before returning.
  
          :param unicode device: The device
          :param unicode sim: The sim
          :param unicode status: The status
          :param unicode direction: The direction
          :param int limit: Upper limit for the number of records to return. list() guarantees
                            never to return more than limit.  Default is no limit
          :param int page_size: Number of records to fetch per request, when not set will use
                                the default value of 50 records.  If no page_size is defined
                                but a limit is defined, list() will attempt to read the limit
                                with the most efficient page size, i.e. min(limit, 1000)
  
          :returns: Generator that will yield up to limit results
          :rtype: list[twilio.rest.preview.wireless.command.CommandInstance]