code: def test_create_experiment(self):
      f = open("modelchimp/tests/sample_code.py")
      response = self.client.post(
          f"/api/v2/experiment/create/{self.project.id}/",
          data={
              "project": self.project.id,
              "status": ExperimentStatus.IN_PROCESS,
              "code_file": f,
          },
          format="multipart",
      )
      self.assertEqual(response.status_code, status.HTTP_201_CREATED)
      response = self.client.post(
          f"/api/v2/experiment/create/{self.project.id}/",
          data={
              "project": self.project.id,
              "experiment_id": response.data["experiment_id"],
              "status": ExperimentStatus.IN_PROCESS,
              "code_file": f,
          },
          format="multipart",
      )
      self.assertEqual(response.status_code, status.HTTP_200_OK)
      f.close()
  
file_path: modelchimp/modelchimp/tests/views/test_experiment_api.py
imports: from rest_framework import status
  from modelchimp.tests import BaseTest
  from modelchimp.enum import ExperimentStatus
label_desc: Use image node_id 2 for calling the ExperimentApiTest obj's underlying member method code with example usage: obj.test_create_experiment() without return types