code: def refresh(self, wait_for_active=False, retry_seconds=5):
          
          done = False
          while not done:
              response = self.layer2.describe_table(self.name)
              self.update_from_response(response)
              if wait_for_active:
                  if self.status == 'ACTIVE':
                      done = True
                  else:
                      time.sleep(retry_seconds)
              else:
                  done = True
docs: Refresh all of the fields of the Table object by calling
          the underlying DescribeTable request.
  
          :type wait_for_active: bool
          :param wait_for_active: If True, this command will not return
              until the table status, as returned from Amazon DynamoDB, is
              'ACTIVE'.
  
          :type retry_seconds: int
          :param retry_seconds: If wait_for_active is True, this
              parameter controls the number of seconds of delay between
              calls to update_table in Amazon DynamoDB.  Default is 5 seconds.