code: def check_input_array(x_train):
      if np.max(x_train) > 1:
          transformed_x_train = x_train.astype("float32") / 255
          transform_flag = True
      else:
          transformed_x_train = x_train
          transform_flag = False
  
      return transformed_x_train, transform_flag
  
imports: import logging
  import os
  from typing import Optional
  import numpy
  from golem.utilities.requirements_notificator import warn_requirement
  from fedot.core.operations.operation_parameters import OperationParameters
  from fedot.core.data.data import InputData, OutputData
  from golem.core.log import LoggerAdapter, default_log
  from fedot.core.operations.evaluation.operation_implementations.implementation_interfaces import ModelImplementation
  from sklearn import preprocessing
label_desc: Use image node_id 1 for calling a global function with example usage: check_input_array(x_train) and returns: transformed_x_train,  transform_flag