code: def encode(x):
      if x == "low":
          return 0
      elif x == "medium":
          return 1
      elif x == "high":
          return 2
  
file_path: mlcourse.ai/jupyter_russian/topic06_features/demo.py
imports: import numpy
  import pandas
  import json
  from sklearn.base import TransformerMixin
label_desc: Use image node_id 1 for calling a global function with example usage: encode(x) and returns: int, int, int