docstr: Clean predict from nan, inf and reshape data for Fedot appropriate form
          
docstr_tok: ["Clean","predict","from","nan",",","inf","and","reshape","data","for","Fedot","appropriate","form"]
code: def _clean_predict(predict: np.array):
      """Clean predict from nan, inf and reshape data for Fedot appropriate form"""
      predict = np.where(np.isnan(predict), 0, predict)
      predict = np.where(np.isinf(predict), 0, predict)
      predict = predict.reshape(predict.shape[0], -1)
      return predict
  
file_path: FEDOT/fedot/core/operations/evaluation/operation_implementations/data_operations/topological/topological_extractor.py
imports: import math
  import sys
  from multiprocessing import cpu_count
  from typing import Optional
  import numpy
  from joblib import Parallel, delayed
  from fedot.core.data.data import InputData, OutputData
  from fedot.core.operations.evaluation.operation_implementations.data_operations.topological.point_cloud import TopologicalTransformation
  from fedot.core.operations.evaluation.operation_implementations.data_operations.topological.topological import HolesNumberFeature, MaxHoleLifeTimeFeature, RelevantHolesNumber, AverageHoleLifetimeFeature, SumHoleLifetimeFeature, PersistenceEntropyFeature, SimultaneousAliveHolesFeature, AveragePersistenceLandscapeFeature, BettiNumbersSumFeature, RadiusAtMaxBNFeature, PersistenceDiagramsExtractor, TopologicalFeaturesExtractor
  from fedot.core.operations.evaluation.operation_implementations.implementation_interfaces import DataOperationImplementation
  from fedot.core.operations.operation_parameters import OperationParameters
  from golem.utilities.utilities import determine_n_jobs
label_desc: Use image node_id 4 for calling the TopologicalFeaturesImplementation obj's underlying member method code with example usage: obj._clean_predict(predict) and returns: predict