def METHOD_NAME(request, bucket_factory, project_factory, mcg_obj, resource_path):
    """
    MCG IO workload factory. Calling this fixture creates a OpenShift Job.
    Args:
        request (obj): request fixture instance
        bucket_factory (func): factory function for bucket creation
        project_factory (func): factory function for project creation
        mcg_obj (obj): instance of MCG class
        resource_path (str): path to directory where should be created
            resources
    Returns:
        func: MCG workload job factory function
    """
    instances = []
    def _factory(job_name=None, bucket=None, project=None, custom_options=None):
        """
        Args:
            job_name (str): Name of the job
            bucket (obj): MCG bucket with S3 interface
            project (obj): OCP object representing OCP project which will be
                used for the job
            mcg_obj (obj): instance of MCG class
            resource_path (str): path to directory where should be created
                resources
            custom_options (dict): Dictionary of lists containing tuples with
                additional configuration for fio in format:
                {'section': [('option', 'value'),...],...}
                e.g.
                {'global':[('name','bucketname')],'create':[('time_based','1'),('runtime','48h')]}
                Those values can be added to the config or rewrite already existing
                values
        Returns:
            func: MCG workload job factory function
        """
        job_name = job_name or create_unique_resource_name(
            resource_description="mcg-io", resource_type="job"
        )
        bucket = bucket or bucket_factory()
        project = project or project_factory()
        job = create_workload_job(
            job_name, bucket, project, mcg_obj, resource_path, custom_options
        )
        instances.append(job)
        return job
    def _finalizer():
        """
        Delete the RBD secrets
        """
        for instance in instances:
            instance.delete()
            instance.ocp.wait_for_delete(instance.name)
    request.addfinalizer(_finalizer)
    return _factory