code: def get_queryset(self, metric_0, metric_1):
      queryset = ExperimentImage.objects.filter(
          ml_model=self.kwargs["model_id"]
      )
      queryset = queryset.annotate(
          metric_0=RawSQL(
              "CAST(metric_dict->>%s AS DECIMAL)", (metric_0,)
          )
      )
      queryset = queryset.annotate(
          metric_1=RawSQL(
              "CAST(metric_dict->>%s AS DECIMAL)", (metric_1,)
          )
      )
      queryset = queryset.annotate(
          name=RawSQL(
              """
              CASE WHEN custom_file_name = '' THEN experiment_image
  			ELSE custom_file_name
              END
              """,
              (),
          )
      )
  
      return queryset
  
imports: from django.db.models import Q
  from django.db.models.expressions import RawSQL
  from rest_framework import generics, status
  from rest_framework.response import Response
  from modelchimp.models.experiment_image import ExperimentImage
  from modelchimp.models.experiment import Experiment
  from modelchimp.utils.data_utils import execute_query
  from modelchimp.serializers.experiment_image import ExperimentImageSerializer
  from modelchimp.api_permissions import HasProjectMembership
  from rest_framework.permissions import IsAuthenticated
label_desc: Use image node_id 2 for calling the ExperimentImageListAPI obj's underlying member method code with example usage: obj.get_queryset(metric_0, metric_1) and returns: queryset