code: def init_data_for_remote_execution(train_data: InputData):
      setup = RemoteEvaluator()
      if setup.remote_task_params is not None:
          setup.remote_task_params.train_data_idx = train_data.idx
  
imports: import os
  from dataclasses import dataclass
  from typing import List, Optional, Sequence, Any, TypeVar, Callable, Hashable
  import numpy
  from golem.core.log import default_log
  from golem.core.optimisers.genetic.evaluation import DelegateEvaluator
  from golem.utilities.serializable import Serializable
  from fedot.core.data.data import InputData
  from fedot.remote.infrastructure.clients.client import Client
  from fedot.utilities.pattern_wrappers import singleton
label_desc: Use image node_id 1 for calling a global function with example usage: init_data_for_remote_execution(train_data) without return types