code: def report_factory(imagelab):
      if imagelab:
          return ImagelabReporterAdapter
      else:
          return Reporter
  
file_path: cleanlab/cleanlab/datalab/internal/helper_factory.py
imports: from typing import Optional, Type
  from cleanlab.datalab.internal.adapter.imagelab import ImagelabDataIssuesAdapter, ImagelabIssueFinderAdapter, ImagelabReporterAdapter
  from cleanlab.datalab.internal.data import Data
  from cleanlab.datalab.internal.data_issues import DataIssues, _ClassificationInfoStrategy, _RegressionInfoStrategy
  from cleanlab.datalab.internal.issue_finder import IssueFinder
  from cleanlab.datalab.internal.report import Reporter
label_desc: Use image node_id 2 for calling a global function with example usage: report_factory(imagelab) and returns: ImagelabReporterAdapter, Reporter