code: def resolve(d):
      """Canonicalize `d` with current device as default."""
      return canonicalize(d, default=current())
  
file_path: tensorflow-upstream/tensorflow/python/distribute/device_util.py
imports: from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  from tensorflow.python.framework import device
  from tensorflow.python.framework import ops
label_desc: Use image node_id 3 for calling a global function with example usage: resolve(d) and returns: canonicalize