code: def _process_predict_column_values_one_by_one(
      value, current_type: type
  ):
      """Process column values one by one and try to convert them into desirable type.
      If not successful replace with np.nan"""
      new_value = np.nan
      try:
          new_value = current_type(value)
      except ValueError:
          if isinstance(value, str) and ("." in value or "," in value):
              value = value.replace(",", ".")
              try:
                  # Since "10.6" can not be converted to 10 straightforward using int()
                  if current_type is int:
                      new_value = int(float(value))
              except ValueError:
                  pass
      return new_value
  
imports: from __future__ import annotations
  from collections.abc import Sequence
  from typing import TYPE_CHECKING, Dict, List, Optional, Tuple
  import numpy
  import pandas
  from golem.core.log import LoggerAdapter, default_log
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 9 for calling a global function with example usage: _process_predict_column_values_one_by_one(value, current_type) and returns: new_value