code: def cache_security_group_exists(name, region=None, key=None, keyid=None, profile=None):
      '''
      Check to see if an ElastiCache security group exists.
  
      Example:
  
      .. code-block:: bash
  
          salt myminion boto3_elasticache.cache_security_group_exists mysecuritygroup
      '''
      return bool(describe_cache_security_groups(name=name, region=region, key=key, keyid=keyid,
                  profile=profile)f cache_security_group_exists(name, region=None, key=None, keyid=None, profile=None):
      '''
      Check to see if an ElastiCache security group exists.
  
      Example:
  
      .. code-block:: bash
  
          salt myminion boto3_elasticache.cache_security_group_exists mysecuritygroup
      '''
      return bool(describe_cache_security_groups(name=name, region=region, key=key, keyid=keyid,
                  profile=profile))
docs: Check to see if an ElastiCache security group exists.
  
      Example:
  
      .. code-block:: bash
  
          salt myminion boto3_elasticache.cache_security_group_exists mysecuritygroup