code: def do_ams_auth(endpoint, body):
      '''Acquire Media Services Authentication Token.
      Args:
          endpoint (str): Azure Media Services Initial Endpoint.
          body (str): A Content Body.
  
      Returns:
          HTTP response. JSON body.
      '''
      headers = {"content-type": "application/x-www-form-urlencoded",
                 "Accept": json_acceptformat}
      return requests.post(endpoint, data=body, headers=headersf do_ams_auth(endpoint, body):
      '''Acquire Media Services Authentication Token.
      Args:
          endpoint (str): Azure Media Services Initial Endpoint.
          body (str): A Content Body.
  
      Returns:
          HTTP response. JSON body.
      '''
      headers = {"content-type": "application/x-www-form-urlencoded",
                 "Accept": json_acceptformat}
      return requests.post(endpoint, data=body, headers=headers)
docs: Acquire Media Services Authentication Token.
      Args:
          endpoint (str): Azure Media Services Initial Endpoint.
          body (str): A Content Body.
  
      Returns:
          HTTP response. JSON body.