docs: def check_global_valid(self):
          """
          Makes sure there aren't any SAM resources in a template that will be used in a CloudFormation StackSet
          :return: bool
          """
          serverless_cnt = len(list(filter(lambda x: x._serverless_type, self._data['resources'])))
          if serverless_cnt > 0:
              return False
          return True