code: def _compute_device_assignment_summary_from_op(op, prefix=""):
      # pylint: disable=protected-access
      return _compute_device_summary_from_list(
          op.name, op._device_assignments, prefix
      )
  
file_path: tensorflow-upstream/tensorflow/python/framework/error_interpolation.py
imports: import collections
  import os
  import re
  import site
  import traceback
  from tensorflow.python.util import tf_stack
label_desc: Use image node_id 3 for calling a global function with example usage: _compute_device_assignment_summary_from_op(op, prefix) and returns: _compute_device_summary_from_list