parameters: (callback: OptionalProgressCallback)
return_statement: return callback
docstring: returns a predefined callback or the given callback
docstring_summary: returns a predefined callback or the given callback
docstring_tokens: returns a predefined callback or the given callback
function: def get_progress_callback(callback: OptionalProgressCallback) -> ProgressCallback:
      """ returns a predefined callback or the given callback """
      if callback is None:
          return None
      elif callback == PredefinedProgressCallback.TermProgress or callback == ...:
          return TermProgress_nocb
      elif callback == PredefinedProgressCallback.TermProgressPy:
          return get_py_term_progress_callback()
      elif callback == PredefinedProgressCallback.TermProgressSimple:
          return simple_term_progress
  
      return callback
function_tokens: def get_progress_callback ( callback : OptionalProgressCallback ) -> ProgressCallback : if callback is None : return None elif callback == PredefinedProgressCallback . TermProgress or callback == ... : return TermProgress_nocb elif callback == PredefinedProgressCallback . TermProgressPy : return get_py_term_progress_callback ( ) elif callback == PredefinedProgressCallback . TermProgressSimple : return simple_term_progress return callback