def check_media_service_name_availability(access_token, subscription_id, msname):
endpoint = '<STR_LIT>'.join([get_rm_endpoint(),<EOL>'<STR_LIT>', subscription_id,<EOL>'<STR_LIT>',<EOL>'<STR_LIT>', MEDIA_API])<EOL>ms_body = {'<STR_LIT:name>': msname}<EOL>ms_body['<STR_LIT:type>'] = '<STR_LIT>'<EOL>body = json.dumps(ms_body)<EOL>return do_post(endpoint, body, access_token)<EOL>
Check media service name availability.

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        msname (str): media service name.

    Returns:
        HTTP response.