docs: def is_tagged(required_tags, has_tags):
      """Checks if tags match"""
      if not required_tags and not has_tags:
          return True
      elif not required_tags:
          return False
  
      found_tags = []
      for tag in required_tags:
          if tag in has_tags:
              found_tags.append(tag)
  
      return len(found_tags) == len(required_tags)