code: def list_media_services_rg(access_token, subscription_id, rgname):
      '''List the media services in a resource group.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          rgname (str): Azure resource group name.
  
      Returns:
          HTTP response. JSON body.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/resourceGroups/', rgname,
                          '/providers/microsoft.media/mediaservices?api-version=', MEDIA_API])
      return do_get(endpoint, access_tokenf list_media_services_rg(access_token, subscription_id, rgname):
      '''List the media services in a resource group.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          rgname (str): Azure resource group name.
  
      Returns:
          HTTP response. JSON body.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/resourceGroups/', rgname,
                          '/providers/microsoft.media/mediaservices?api-version=', MEDIA_API])
      return do_get(endpoint, access_token)
docs: List the media services in a resource group.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          rgname (str): Azure resource group name.
  
      Returns:
          HTTP response. JSON body.