code: def set_ignores(self, folder, *patterns):
          
          if not patterns:
              return {}
          data = {'ignore': list(patterns)}
          return self.post('ignores', params={'folder': folder}, data=data)
docs: Applies ``patterns`` to ``folder``'s ``.stignore`` file.
  
              Args:
                  folder (str):
                  patterns (str):
  
              Returns:
                  dict