code: def _activate_tests_given_data(test_funcs, testing_data):
      defined_names_ls = _get_available_data_names(testing_data)
  
      missing_tests = []
      for name in defined_names_ls:
          if name in test_funcs:
              test_funcs[name].active = True
  
          elif not name.endswith("_vec"):
              missing_tests.append(name)
              continue
  
          else:
              name_no_vec = name[:-4]
              if name_no_vec not in test_funcs:
                  missing_tests.append(name)
                  continue
  
              test_function = AutoVecTestFunction(
                  test_funcs[name_no_vec]
              )
              test_funcs[test_function.vanilla_name] = test_function
  
      _raise_missing_tests(missing_tests)
  
      return test_funcs
  
imports: import functools
  import importlib
  import inspect
  import json
  import os
  import subprocess
  import tempfile
  import types
  import warnings
  import pytest
  from matplotlib import pyplot
  import geomstats.backend
  from geomstats.exceptions import AutodiffNotImplementedError
  from geomstats.test.test_case import autodiff_backend
  from geomstats.test.vectorization import test_vectorization
label_desc: Use image node_id 19 for calling a global function with example usage: _activate_tests_given_data(test_funcs, testing_data) and returns: test_funcs