code: def param_metric_data(request, project_id):
      """
      Send the data of the model parameters to be displayed in the table
      """
      try:
          param_fields = request.data.getlist("param_fields[]")
      except Exception as e:
          return Response(
              "Error: %s" % e, status=status.HTTP_400_BAD_REQUEST
          )
  
      query = """
  	select distinct id,key,value
  	from modelchimp_experiment ml, json_each_text(parameters::json)
  	where json_typeof(parameters::json) = 'object'
  	and project_id = %s
  	and key in (%s)
  	"""
      query = query % (
          project_id,
          ",".join(["'" + param + "'" for param in param_fields]),
      )
      result_raw = execute_query(query)
  
      return Response(result_raw, status=status.HTTP_200_OK)
  
file_path: modelchimp/modelchimp/views/api/project.py
imports: from uuid import uuid4
  from rest_framework import generics, status, mixins
  from rest_framework.response import Response
  from rest_framework.decorators import api_view, permission_classes
  from rest_framework.permissions import IsAuthenticated
  from modelchimp.models.project import Project
  from modelchimp.serializers.project import ProjectSerializer
  from modelchimp.api_permissions import HasProjectMembership
  from modelchimp.models.membership import Membership
  from modelchimp.utils.data_utils import execute_query
label_desc: Use image node_id 2 for calling a global function with example usage: param_metric_data(request, project_id) and returns: Response, Response