docs: def __generate_params(self, params, exclude=[]):
          """
          Internal named-parameters-to-dict helper.
  
          Note for developers: If called with locals() as params,
          as is the usual practice in this code, the __generate_params call
          (or at least the locals() call) should generally be the first thing
          in your function.
          """
          params = collections.OrderedDict(params)
  
          del params['self']
          param_keys = list(params.keys())
          for key in param_keys:
              if isinstance(params[key], bool) and params[key] == False:
                  params[key] = '0'
              if isinstance(params[key], bool) and params[key] == True:
                  params[key] = '1'
                  
          for key in param_keys:
              if params[key] is None or key in exclude:
                  del params[key]
  
          param_keys = list(params.keys())
          for key in param_keys:
              if isinstance(params[key], list):
                  params[key + "[]"] = params[key]
                  del params[key]
              
          return params