code: def mocked_requests_post(*args, **kwargs):
      class MockResponse:
          def __init__(self, json_data, status_code):
              self.json_data = json_data
              self.status_code = status_code
  
          def json(self):
              return self.json_data
  
      url = args[0]
      if "/api/projects" in url:
          return MockResponse({"id": 1, "name": "project1"}, 200)
      elif "/api/tasks" in url:
          return MockResponse(
              {"id": 1, "name": "task1", "status": "completed"}, 200
          )
  
      return MockResponse(None, 404)
  
file_path: MONAILabel/tests/unit/datastore/test_cvat.py
imports: import os
  import unittest
  from unittest.mock import patch
  from monailabel.datastore.cvat import CVATDatastore
label_desc: Use image node_id 2 for calling a global function with example usage: mocked_requests_post() and returns: MockResponse, MockResponse, self, MockResponse