def METHOD_NAME(vm):
  """Installs TF Serving API on the vm.
  Currently this is only useful so that the clients can run python
  scripts that import tensorflow_serving. The server vms make no use
  of it.
  Args:
    vm: VM to operate on.
  """
  pip_package_output_dir = posixpath.join(VM_TMP_DIR, 'tf_serving_pip_package')
  pip_package = posixpath.join(pip_package_output_dir,
                               'tensorflow_serving_api*.whl')
  vm.Install('pip3')
  vm.RemoteCommand('sudo pip3 install --upgrade pip')
  # Build the pip package from the same source as the serving binary
  vm.RemoteCommand('sudo docker run --rm -v {0}:{0} '
                   'benchmarks/tensorflow-serving-devel '
                   'bash -c "bazel build --config=nativeopt '
                   'tensorflow_serving/tools/pip_package:build_pip_package && '
                   'bazel-bin/tensorflow_serving/tools/pip_package/'
                   'build_pip_package {0}"'.format(pip_package_output_dir))
  vm.RemoteCommand('sudo pip3 install {0}'.format(pip_package))