code: def init_remote_evaluator():
      # runs around tests thanks to 'yield'
  
      evaluator = RemoteEvaluator()
      evaluator.init(
          TestLocalClient(),
          RemoteTaskParams(mode="remote"),
          mock_config,
      )
  
      # marks the ned of test startup and beginning of test shutdown
      yield
  
      # return evaluator to local mode
      evaluator = RemoteEvaluator()
      evaluator.init(None, RemoteTaskParams(mode="local"))
  
imports: import json
  import uuid
  from datetime import timedelta
  from typing import Tuple, Union, Optional, Sequence
  import pytest
  from golem.utilities.serializable import Serializable
  from fedot.remote.infrastructure.clients.client import Client
  from fedot.remote.remote_evaluator import RemoteEvaluator, RemoteTaskParams
label_desc: Use image node_id 2 for calling a global function with example usage: init_remote_evaluator() without return types