class_docstr: Data class for input data for the nodes
      
class_docstr_tok: ["Data","class","for","input","data","for","the","nodes"]
docstr: Conversion non ``int`` (``datetime``, ``string``, etc) indexes in ``integer`` form on the predict stage
          
code: def convert_non_int_indexes_for_predict(self, pipeline):
      """Conversion non ``int`` (``datetime``, ``string``, etc) indexes in ``integer`` form on the predict stage"""
  
      copied_data = deepcopy(self)
      is_timestamp = isinstance(
          copied_data.idx[0], pd._libs.tslibs.timestamps.Timestamp
      )
      is_numpy_datetime = isinstance(copied_data.idx[0], np.datetime64)
      # if predict stage - calculating shift from last train part index
      if is_timestamp or is_numpy_datetime:
          copied_data.supplementary_data.non_int_idx = copy(self.idx)
          copied_data.idx = self._resolve_non_int_idx(pipeline)
      elif not isinstance(
          copied_data.idx[0], (int, np.int32, np.int64)
      ):
          # note, that string indexes do not have an order and always we think that indexes we want to predict go
          # immediately after the train indexes
          copied_data.supplementary_data.non_int_idx = copy(
              copied_data.idx
          )
          copied_data.idx = pipeline.last_idx_int + np.array(
              range(1, len(copied_data.idx) + 1)
          )
      return copied_data
  
imports: from __future__ import annotations
  import glob
  import os
  from copy import copy, deepcopy
  from dataclasses import dataclass, field
  from typing import Any, Iterable, List, Optional, Tuple, Union
  import numpy
  import pandas
  from golem.core.log import default_log
  from golem.utilities.requirements_notificator import warn_requirement
  from fedot.core.data.array_utilities import atleast_2d
  from fedot.core.data.load_data import JSONBatchLoader, TextBatchLoader
  from fedot.core.data.supplementary_data import SupplementaryData
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 9 for calling the InputData obj's underlying member method code with example usage: obj.convert_non_int_indexes_for_predict(pipeline) and returns: copied_data