docs: def _dump(obj, abspath, serializer_type,
            dumper_func=None,
            compress=True,
            overwrite=False,
            verbose=False,
            **kwargs):
      """Dump object to file.
  
      :param abspath: The file path you want dump to.
      :type abspath: str
  
      :param serializer_type: 'binary' or 'str'.
      :type serializer_type: str
  
      :param dumper_func: A dumper function that takes an object as input, return
          binary or string.
      :type dumper_func: callable function
  
      :param compress: default ``False``. If True, then compress binary.
      :type compress: bool
  
      :param overwrite: default ``False``, If ``True``, when you dump to
        existing file, it silently overwrite it. If ``False``, an alert
        message is shown. Default setting ``False`` is to prevent overwrite
        file by mistake.
      :type overwrite: boolean
  
      :param verbose: default True, help-message-display trigger.
      :type verbose: boolean
      """
      _check_serializer_type(serializer_type)
  
      if not inspect.isfunction(dumper_func):
          raise TypeError("dumper_func has to be a function take object as input "
                          "and return binary!")
  
      prt_console("\nDump to '%s' ..." % abspath, verbose)
      if os.path.exists(abspath):
          if not overwrite:
              prt_console(
                  "    Stop! File exists and overwrite is not allowed",
                  verbose,
              )
              return
  
      st = time.clock()
  
      b_or_str = dumper_func(obj, **kwargs)
      if serializer_type is "str":
          b = b_or_str.encode("utf-8")
      else:
          b = b_or_str
  
      if compress:
          b = zlib.compress(b)
  
      with atomic_write(abspath, overwrite=overwrite, mode="wb") as f:
          f.write(b)
  
      elapsed = time.clock() - st
      prt_console("    Complete! Elapse %.6f sec." % elapsed, verbose)
  
      if serializer_type is "str":
          return b_or_str
      else:
          return b