code: def sbatch_template_str(self):
          
          templates = self.campaign.process.sbatch_template
          if isinstance(templates, Mapping):
              # find proper template according to the tag
              template = templates.get(self.tag)
              if template is None:
                  template = templates.get('*')
              if template is None:
                  template = SBATCH_JINJA_TEMPLATE
          else:
              template = templates
          return template
docs: :return Jinja sbatch template for the current tag as string