code: def ellipse(lst, max_display=5, sep="|"):
      """
      Like join, but possibly inserts an ellipsis.
      :param lst: The list to join on
      :param int max_display: the number of items to display for ellipsing.
          If -1, shows all items
      :param string sep: the delimiter to join on
      """
      # copy the list (or force it to a list if it's a set)
      choices = list(lst)
      # insert the ellipsis if necessary
      if max_display > 0 and len(choices) > max_display:
          ellipsis = "...and {} more".format(len(choices) - max_display)
          choices = choices[:max_display] + [ellipsis]
      return sep.join(str(c) for c in choices)
  
file_path: BLINK/blink/common/optimizer.py
imports: import torch
  import os
  import numpy
  from pytorch_transformers.modeling_bert import BertPreTrainedModel, BertConfig, BertModel
  from pytorch_transformers.tokenization_bert import BertTokenizer
  from torch import nn
  from pytorch_transformers.file_utils import PYTORCH_PRETRAINED_BERT_CACHE
  from pytorch_transformers.optimization import AdamW
label_desc: Use image node_id 2 for calling a global function with example usage: ellipse(lst, max_display, sep) and returns: sep