code: def test_create_work_will_have_none_backend(mockclient):
      def queue_put_mock(work):
          # because we remove backend before pushing to queue
          assert work._backend is None
  
      cloud_backend = CloudBackend("")
      app = MagicMock()
      work = EmptyWork()
      # attaching backend - this will be removed by the queue
      work._backend = cloud_backend
      app.work_queues["work_name"].put = queue_put_mock
      cloud_backend.create_work(app, work)
      # make sure the work still have the backend attached
      assert work._backend == cloud_backend
  
imports: import json
  import os
  from copy import copy
  from datetime import datetime
  from unittest import mock
  from unittest.mock import ANY, MagicMock, Mock
  import pytest
  from lightning.app import BuildConfig, CloudCompute, LightningWork
  from lightning.app.launcher.lightning_backend import CloudBackend
  from lightning.app.storage import Drive, Mount
  from lightning.app.testing.helpers import EmptyWork
  from lightning.app.utilities.enum import WorkFailureReasons, WorkStageStatus
  from lightning.app.utilities.exceptions import LightningPlatformException
  from lightning_cloud.openapi import Body5, V1DriveType, V1LightningworkState, V1SourceType
  from lightning_cloud.openapi.rest import ApiException
label_desc: Use image node_id 12 for calling a global function with example usage: test_create_work_will_have_none_backend(mockclient) without return types