def function_to_wrap():
    'No-arg function to import graph def.\n\n    We pass a no-arg function to `tf.compat.v1.wrap_function` to avoid\n    the leftover placeholders that can result from binding arguments to the\n    imported graphdef via `input_map`. The correct signature will be added to\n    this function later, via the `prune` call below.\n\n    Returns:\n      Result of importing graphdef backing `comp`.\n    '
    graph_def = serialization_utils.unpack_graph_def(comp.tensorflow.graph_def)
    init_op = comp.tensorflow.initialize_op
    if init_op:
        graph_def = tensorflow_utils.add_control_deps_for_init_op(graph_def, init_op)

    def _import_fn():
        return tf.import_graph_def(graph_merge.uniquify_shared_names(graph_def), name='')
    if must_pin_function_to_cpu:
        with tf.device('cpu'):
            return _import_fn()
    elif (device is not None):
        with tf.device(device.name):
            return _import_fn()
    else:
        return _import_fn()
No-arg function to import graph def.

We pass a no-arg function to `tf.compat.v1.wrap_function` to avoid
the leftover placeholders that can result from binding arguments to the
imported graphdef via `input_map`. The correct signature will be added to
this function later, via the `prune` call below.

Returns:
  Result of importing graphdef backing `comp`.
def function_to_wrap():
    'No-arg function to import graph def.\n\n    We pass a no-arg function to `tf.compat.v1.wrap_function` to avoid\n    the leftover placeholders that can result from binding arguments to the\n    imported graphdef via `input_map`. The correct signature will be added to\n    this function later, via the `prune` call below.\n\n    Returns:\n      Result of importing graphdef backing `comp`.\n    '
    graph_def = serialization_utils.unpack_graph_def(comp.tensorflow.graph_def)
    init_op = comp.tensorflow.initialize_op
    if init_op:
        graph_def = tensorflow_utils.add_control_deps_for_init_op(graph_def, init_op)

    def _import_fn():
        return tf.import_graph_def(graph_merge.uniquify_shared_names(graph_def), name=)
    if must_pin_function_to_cpu:
        with tf.device('cpu'):
            return _import_fn()
    elif (device is not None):
        with tf.device(device.name):
            return _import_fn()
    else:
        return _import_fn()