code: def create_asset_accesspolicy(access_token, name, duration, permission="1"):
      '''Create Media Service Asset Access Policy.
  
      Args:
          access_token (str): A valid Azure authentication token.
          name (str): A Media Service Asset Access Policy Name.
          duration (str): A Media Service duration.
          permission (str): A Media Service permission.
  
      Returns:
          HTTP response. JSON body.
      '''
      path = '/AccessPolicies'
      endpoint = ''.join([ams_rest_endpoint, path])
      body = '{ \
  		"Name": "' + str(name) + '", \
  		"DurationInMinutes": "' + duration + '", \
  		"Permissions": "' + permission + '" \
  	}'
      return do_ams_post(endpoint, path, body, access_tokenf create_asset_accesspolicy(access_token, name, duration, permission="1"):
      '''Create Media Service Asset Access Policy.
  
      Args:
          access_token (str): A valid Azure authentication token.
          name (str): A Media Service Asset Access Policy Name.
          duration (str): A Media Service duration.
          permission (str): A Media Service permission.
  
      Returns:
          HTTP response. JSON body.
      '''
      path = '/AccessPolicies'
      endpoint = ''.join([ams_rest_endpoint, path])
      body = '{ \
  		"Name": "' + str(name) + '", \
  		"DurationInMinutes": "' + duration + '", \
  		"Permissions": "' + permission + '" \
  	}'
      return do_ams_post(endpoint, path, body, access_token)
docs: Create Media Service Asset Access Policy.
  
      Args:
          access_token (str): A valid Azure authentication token.
          name (str): A Media Service Asset Access Policy Name.
          duration (str): A Media Service duration.
          permission (str): A Media Service permission.
  
      Returns:
          HTTP response. JSON body.