code: def algo_as_str(algo):
      if isinstance(algo, basestring):
          return algo
      return str(algo)
  
file_path: auptimizer/src/aup/Proposer/hyperopt/plotting.py
imports: from __future__ import print_function
  import math
  import sys
  from past.builtins import xrange
  from hyperopt.mongoexp import MongoJobs
  import numpy
  from .None import base
  from .base import miscs_to_idxs_vals
label_desc: Use image node_id 1 for calling a global function with example usage: algo_as_str(algo) and returns: str, algo