code: def __extract_help(method):
          
          if method is None:
              return "(No associated method)"
  
          # Get the arguments
          arg_spec = get_method_arguments(method)
  
          # Ignore the session argument
          start_arg = 1
  
          # Compute the number of arguments with default value
          if arg_spec.defaults is not None:
              nb_optional = len(arg_spec.defaults)
  
              # Let the mandatory arguments as they are
              args = [
                  "<{0}>".format(arg)
                  for arg in arg_spec.args[start_arg:-nb_optional]
              ]
  
              # Add the other arguments
              for name, value in zip(
                  arg_spec.args[-nb_optional:], arg_spec.defaults[-nb_optional:]
              ):
                  if value is not None:
                      args.append("[<{0}>={1}]".format(name, value))
                  else:
                      args.append("[<{0}>]".format(name))
          else:
              # All arguments are mandatory
              args = ["<{0}>".format(arg) for arg in arg_spec.args[start_arg:]]
  
          # Extra arguments
          if arg_spec.keywords:
              args.append("[<property=value> ...]")
  
          if arg_spec.varargs:
              args.append("[<{0} ...>]".format(arg_spec.varargs))
  
          # Get the documentation string
          doc = inspect.getdoc(method) or "(Documentation missing)"
          return " ".join(args), " ".join(doc.split())
docs: Formats the help string for the given method
  
          :param method: The method to document
          :return: A tuple: (arguments list, documentation line)