code: def round_n_neighbors(params: dict) -> dict:
      """Convert n_neighbors into integer value. Operation work inplace."""
      if "n_neighbors" in params:
          n_neighbors = round(params["n_neighbors"])
          if n_neighbors == 0:
              n_neighbors = 1
          params["n_neighbors"] = n_neighbors
      return params
  
imports: from typing import Callable, Optional
  import numpy
  from sklearn.neighbors import KNeighborsClassifier, KNeighborsRegressor
  from fedot.core.operations.evaluation.operation_implementations.implementation_interfaces import ModelImplementation
  from fedot.core.operations.operation_parameters import OperationParameters
label_desc: Use image node_id 1 for calling a global function with example usage: round_n_neighbors(params) and returns: params