code: def verify_sns_subscription_current(self, subscription_arn, topic_name,
                                          function_arn):
          # type: (str, str, str) -> bool
          
          sns_client = self._client('sns')
          try:
              attributes = sns_client.get_subscription_attributes(
                  SubscriptionArn=subscription_arn)['Attributes']
              return (
                  # Splitting on ':' is safe because topic names can't have
                  # a ':' char.
                  attributes['TopicArn'].rsplit(':', 1)[1] == topic_name and
                  attributes['Endpoint'] == function_arn
              )
          except sns_client.exceptions.NotFoundException:
              return False
docs: Verify a subscription arn matches the topic and function name.
  
          Given a subscription arn, verify that the associated topic name
          and function arn match up to the parameters passed in.