def _setLayerRule(layer, rule=None):
    layer.ClearField('include')
    layer.ClearField('exclude')
    if rule is not None:
        layer.include.add().CopyFrom(rule)
Localizes fq_name to deal with path difference in python25/27 runtimes.
dataset/ETHPy150Open NVIDIA/DIGITS/digits/model/tasks/caffe_train.py/_setLayerRule--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/ext/mapreduce/util.py/_maybe_localize_fq_name