code: def format_name(name, cls, global_names):
      """Utility for assigning a unique name"""
      # TODO: should pop names when instance is destroyed and check if name taken
      if not name:
          name = "%s-%i" % (cls, len(global_names))
          global_names.append(name)
      return name
  
file_path: mlens/mlens/utils/formatting.py
imports: from __future__ import division, print_function
  from collections import Counter
  from .checks import assert_valid_estimator, assert_correct_format
  from .exceptions import LayerSpecificationError
  from ..externals.sklearn.base import clone
label_desc: Use image node_id 1 for calling a global function with example usage: format_name(name, cls, global_names) and returns: name