def find_subscription_type(subscription):
 subs_available = list(constants.USER_SUBSCRIPTIONS_AVAILABLE.keys())
 subs_available.extend(list(constants.NODE_SUBSCRIPTIONS_AVAILABLE.keys()))
 for available in subs_available:
  if (available in subscription):
   return available

def find_subscription_type ( subscription ) : subs_available = list ( constants . USER_SUBSCRIPTIONS_AVAILABLE . keys ( ) ) subs_available . extend ( list ( constants . NODE_SUBSCRIPTIONS_AVAILABLE . keys ( ) ) ) for available in subs_available : if ( available in subscription ) : return available
find subscription type string within specific subscription .