code: def single_range_to_string(left, right):
      if left != right:
          return "{}-{}".format(left, right)
      else:
          return "{}".format(left)
  
file_path: catboost/catboost/python-package/catboost/eval/factor_utils.py
imports: from enum import Enum
label_desc: Use image node_id 4 for calling the FactorUtils obj's underlying member method code with example usage: obj.single_range_to_string(left, right) and returns: str, str