code: def experiment_duration_filter(request, project_id):
      query = """
  select distinct value as tag
  from modelchimp_experiment ml,
  jsonb_array_elements(ml.durations::jsonb -> 'tag_list')
  where project_id = %s
  order by tag
  	"""
  
      query = query % (project_id,)
  
      result_raw = execute_query(query)
      return Response(result_raw, status=status.HTTP_200_OK)
  
file_path: modelchimp/modelchimp/views/api/project_dashboard.py
imports: from rest_framework import status
  from rest_framework.decorators import api_view, permission_classes
  from rest_framework.response import Response
  from modelchimp.utils.data_utils import execute_query
  from modelchimp.api_permissions import HasProjectMembership
  from rest_framework.permissions import IsAuthenticated
label_desc: Use image node_id 4 for calling a global function with example usage: experiment_duration_filter(request, project_id) and returns: Response