code: def list_nsgs_all(access_token, subscription_id):
      '''List all network security groups in a subscription.
      Args:
          access_token (str): a valid Azure Authentication token.
          subscription_id (str): Azure subscription id.
      Returns:
              HTTP response. JSON body of all network security groups in a subscription.
  
      '''
      endpoint = ''.join([get_rm_endpoint(),
                  '/subscriptions/', subscription_id,
                  '/providers/Microsoft.Network/',
                  'networkSEcurityGroups?api-version=', NETWORK_API])
      return do_get(endpoint, access_tokenf list_nsgs_all(access_token, subscription_id):
      '''List all network security groups in a subscription.
      Args:
          access_token (str): a valid Azure Authentication token.
          subscription_id (str): Azure subscription id.
      Returns:
              HTTP response. JSON body of all network security groups in a subscription.
  
      '''
      endpoint = ''.join([get_rm_endpoint(),
                  '/subscriptions/', subscription_id,
                  '/providers/Microsoft.Network/',
                  'networkSEcurityGroups?api-version=', NETWORK_API])
      return do_get(endpoint, access_token)
docs: List all network security groups in a subscription.
      Args:
          access_token (str): a valid Azure Authentication token.
          subscription_id (str): Azure subscription id.
      Returns:
              HTTP response. JSON body of all network security groups in a subscription.