code: def create(self, request, *args, **kwargs):
      data = request.data.copy()
      data["user"] = self.request.user.id
      experiment_id = self.request.data.get("experiment_id")
  
      # If the experiment already exists then don't create the experiment
      try:
          exp_obj = Experiment.objects.get(experiment_id=experiment_id)
          return Response(
              {"model_id": exp_obj.id}, status=status.HTTP_200_OK
          )
      except Experiment.DoesNotExist:
          logger.info("Experiment already exists")
  
      serializer = self.get_serializer(data=data)
      serializer.is_valid()
      exp_obj = serializer.save()
  
      return Response(
          {
              "model_id": exp_obj.id,
              "experiment_id": exp_obj.experiment_id,
          },
          status=status.HTTP_201_CREATED,
      )
  
file_path: modelchimp/modelchimp/views/api/experiment.py
imports: import logging
  from rest_framework import generics, status
  from rest_framework.response import Response
  from rest_framework.permissions import IsAuthenticated
  from modelchimp.models.experiment import Experiment
  from modelchimp.serializers.experiment import ExperimentSerializer
  from modelchimp.api_permissions import HasProjectMembership
label_desc: Use image node_id 1 for calling the CreateExperimentAPI obj's underlying member method code with example usage: obj.create(request) and returns: Response, Response