code: def enum_to_str(type_class: Enum) -> str:
      all = []
      for element in type_class:
          all.append(element.name)
      return "|".join(all)
  
imports: from enum import Enum
  import json
  from typing import Optional, Dict
  import numpy
  import pandas
  import copy
  from mindsdb.integrations.libs.base import BaseMLEngine
  from mindsdb.utilities import log
  from .adapters import BaseMerlionForecastAdapter, DefaultForecasterAdapter, MerlionArguments, DefaultDetectorAdapter, SarimaForecasterAdapter, ProphetForecasterAdapter, MSESForecasterAdapter, IsolationForestDetectorAdapter, WindStatsDetectorAdapter, ProphetDetectorAdapter
label_desc: Use image node_id 2 for calling a global function with example usage: enum_to_str(type_class) and returns: str