code: def add_current_to_sys_path():
      old = copy(sys.path)
      sys.path.insert(0, os.path.abspath("."))
      yield sys.path
      sys.path = old
  
imports: from copy import copy
  import sys
  import os
  from pathlib import Path
  import numpy
  from sklearn.linear_model import LogisticRegression
  import pytest
  from matplotlib.testing.conftest import mpl_test_settings, mpl_image_comparison_parameters
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.model_selection import GridSearchCV
  from sklearn import datasets
  from sklearn.model_selection import train_test_split
label_desc: Use image node_id 5 for calling a global function with example usage: add_current_to_sys_path() without return types