code: def take_steps(self, number_of_steps: int=1, step_size: Timedelta=None, with_logging: bool=True):
          
          if not isinstance(number_of_steps, int):
              raise ValueError('Number of steps must be an integer.')
  
          if run_from_ipython() and with_logging:
              for _ in log_progress(range(number_of_steps), name='Step'):
                  self.step(step_size)
          else:
              for _ in range(number_of_steps):
                  self.step(step_size)
docs: Run the simulation for the given number of steps.
  
          Parameters
          ----------
          number_of_steps
              The number of steps to take.
          step_size
              An optional size of step to take. Must be the same type as the
              simulation clock's step size (usually a pandas.Timedelta).
          with_logging
              Whether or not to log the simulation steps. Only works in an ipython
              environment.