code: def param_metric_meta(request, project_id):
      """
      List of model parameters as columns to be shown on customize menu
      """
  
      try:
          project_id = int(project_id)
      except Exception as e:
          return Response(
              "Error: %s" % e, status=status.HTTP_400_BAD_REQUEST
          )
  
      # Check the user has permission for the project
      try:
          Membership.objects.get(user=request.user, project=project_id)
      except Membership.DoesNotExist:
          return Response(status=status.HTTP_403_FORBIDDEN)
  
      result = dict()
      query = """
  	select distinct json_object_keys(parameters::json) as name
  	from modelchimp_experiment ml
  	where json_typeof(parameters::json) = 'object'
  	and project_id = %s
  	"""
  
      query = query % (project_id,)
      result["parameter"] = execute_query(query)
  
      query = """
  	select distinct value as name
  	from modelchimp_experiment ml,
  	jsonb_array_elements(ml.metrics::jsonb -> 'metric_list')
  	where project_id = %s
  	order by name
  	"""
  
      query = query % (project_id,)
      result_metric = execute_query(query)
  
      result["metric"] = []
      for metric in result_metric:
          result["metric"].append({"name": f"{metric['name']}$0"})
          result["metric"].append({"name": f"{metric['name']}$1"})
  
      return Response(result, 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 1 for calling a global function with example usage: param_metric_meta(request, project_id) and returns: Response, Response, Response