code: def get_asset_meta_fields(request, model_id):
      """
      List the meta fields of assets in an experiment
      """
  
      query = """
  	select distinct json_object_keys(meta_dict::json) as name
  	from modelchimp_experimentasset me
  	where json_typeof(meta_dict::json) = 'object'
  	and me.ml_model_id = %s
  	"""
  
      query = query % (model_id,)
      result = execute_query(query)
  
      return Response(result)
  
file_path: modelchimp/modelchimp/views/api/experiment_asset.py
imports: from rest_framework import generics
  from modelchimp.serializers.experiment_asset import ExperimentAssetSerializer
  from modelchimp.models.experiment_asset import ExperimentAsset
  from modelchimp.utils.data_utils import execute_query
  from modelchimp.api_permissions import HasProjectMembership
  from rest_framework.permissions import IsAuthenticated
  from rest_framework.decorators import api_view, permission_classes
  from rest_framework.response import Response
label_desc: Use image node_id 1 for calling a global function with example usage: get_asset_meta_fields(request, model_id) and returns: Response