code: def factors_to_ranges_string(factors_set):
      if factors_set is None or len(factors_set) == 0:
          return "None"
      grouped_factors = FactorUtils.group_factors_by_range(factors_set)
  
      return ";".join(
          [
              FactorUtils.single_range_to_string(min(x), max(x))
              for x in grouped_factors
          ]
      )
  
file_path: catboost/catboost/python-package/catboost/eval/factor_utils.py
imports: from enum import Enum
label_desc: Use image node_id 6 for calling the FactorUtils obj's underlying member method code with example usage: obj.factors_to_ranges_string(factors_set) and returns: str, str