parameters: (device)
return_statement: return tf_device.DeviceSpec(
        job=spec.job, replica=spec.replica, task=spec.task,
        device_type="CPU", device_index=0).to_string()
docstring: Returns the corresponding host device for the given device.
docstring_summary: Returns the corresponding host device for the given device.
docstring_tokens: Returns the corresponding host device for the given device .
function: def get_host_for_device(device):
    """Returns the corresponding host device for the given device."""
    spec = tf_device.DeviceSpec.from_string(device)
    return tf_device.DeviceSpec(
        job=spec.job, replica=spec.replica, task=spec.task,
        device_type="CPU", device_index=0).to_string()
function_tokens: def get_host_for_device ( device ) : spec = tf_device . DeviceSpec . from_string ( device ) return tf_device . DeviceSpec ( job = spec . job , replica = spec . replica , task = spec . task , device_type = "CPU" , device_index = 0 ) . to_string ( )