code: def parse_scopes(inputs):
      if not isinstance(inputs, list):
          inputs = [inputs]
      outputs = []
      for scope_or_tensor in inputs:
          if isinstance(scope_or_tensor, tf.Tensor):
              outputs.append(scope_or_tensor.aliases[0])
          elif isinstance(scope_or_tensor, str):
              outputs.append(scope_or_tensor)
          else:
              outputs.append(None)
      return outputs
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  import warnings
  from contextlib import contextmanager
  from .version_utils import tf_later_than
label_desc: Use image node_id 2 for calling a global function with example usage: parse_scopes(inputs) and returns: outputs