code: def scale_streaming_endpoint(access_token, streaming_endpoint_id, scale_units):
      '''Scale Media Service Streaming Endpoint.
  
      Args:
          access_token (str): A valid Azure authentication token.
          streaming_endpoint_id (str): A Media Service Streaming Endpoint ID.
          scale_units (str): A Media Service Scale Units Number.
  
      Returns:
          HTTP response. JSON body.
      '''
      path = '/StreamingEndpoints'
      full_path = ''.join([path, "('", streaming_endpoint_id, "')", "/Scale"])
      full_path_encoded = urllib.parse.quote(full_path, safe='')
      endpoint = ''.join([ams_rest_endpoint, full_path_encoded])
      body = '{"scaleUnits": "' + str(scale_units) + '"}'
      return do_ams_post(endpoint, full_path_encoded, body, access_tokenf scale_streaming_endpoint(access_token, streaming_endpoint_id, scale_units):
      '''Scale Media Service Streaming Endpoint.
  
      Args:
          access_token (str): A valid Azure authentication token.
          streaming_endpoint_id (str): A Media Service Streaming Endpoint ID.
          scale_units (str): A Media Service Scale Units Number.
  
      Returns:
          HTTP response. JSON body.
      '''
      path = '/StreamingEndpoints'
      full_path = ''.join([path, "('", streaming_endpoint_id, "')", "/Scale"])
      full_path_encoded = urllib.parse.quote(full_path, safe='')
      endpoint = ''.join([ams_rest_endpoint, full_path_encoded])
      body = '{"scaleUnits": "' + str(scale_units) + '"}'
      return do_ams_post(endpoint, full_path_encoded, body, access_token)
docs: Scale Media Service Streaming Endpoint.
  
      Args:
          access_token (str): A valid Azure authentication token.
          streaming_endpoint_id (str): A Media Service Streaming Endpoint ID.
          scale_units (str): A Media Service Scale Units Number.
  
      Returns:
          HTTP response. JSON body.