code: def _inject(cls, names):
      @pytest.fixture(autouse=True)
      def auto_injector_fixture(self, request):
          for name in names:
              setattr(self, name, request.getfixturevalue(name))
  
      cls.__auto_injector_fixture = auto_injector_fixture
      return cls
  
file_path: quinn/tests/conftest.py
imports: from functools import partial
  import pytest
  from pyspark import SparkConf
  from quinn.spark import SparkProvider
label_desc: Use image node_id 1 for calling a global function with example usage: _inject(cls, names) and returns: cls