code: def spinner(beep=False, disable=False, force=False):
      
      return Spinner(beep, disable, force)
docs: This function creates a context manager that is used to display a
      spinner on stdout as long as the context has not exited.
  
      The spinner is created only if stdout is not redirected, or if the spinner
      is forced using the `force` parameter.
  
      Parameters
      ----------
      beep : bool
          Beep when spinner finishes.
      disable : bool
          Hide spinner.
      force : bool
          Force creation of spinner even when stdout is redirected.
  
      Example
      -------
  
          with spinner():
              do_something()
              do_something_else()