code: def test_skips_upload_if_no_prepared_url(
      self,
      store_file: "StoreFileFixture",
      api,
      example_file: Path,
      upload_url: Optional[str],
      expect_upload: bool,
      expect_deduped: bool,
  ):
      preparer = mock_preparer(
          prepare_sync=lambda spec: singleton_queue(
              dummy_response_prepare(spec)._replace(
                  upload_url=upload_url
              )
          )
      )
      policy = WandbStoragePolicy(api=api)
  
      deduped = store_file(
          policy, entry_local_path=example_file, preparer=preparer
      )
      assert deduped == expect_deduped
  
      if expect_upload:
          api.upload_method.assert_called_once()
      else:
          api.upload_method.assert_not_called()
  
imports: import asyncio
  import functools
  import queue
  import shutil
  import unittest.mock
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Mapping, Optional
  from unittest.mock import Mock
  import pytest
  import requests
  from wandb.filesync.step_prepare import ResponsePrepare, StepPrepare
  from wandb.sdk.artifacts.artifact import Artifact
  from wandb.sdk.artifacts.artifact_file_cache import ArtifactFileCache
  from wandb.sdk.artifacts.artifact_instance_cache import artifact_instance_cache
  from wandb.sdk.artifacts.artifact_manifest_entry import ArtifactManifestEntry
  from wandb.sdk.artifacts.exceptions import ArtifactNotLoggedError
  from wandb.sdk.artifacts.storage_policies.wandb_storage_policy import WandbStoragePolicy
label_desc: Use image node_id 10 for calling the TestStoreFile obj's underlying member method code with example usage: obj.test_skips_upload_if_no_prepared_url(store_file, api, example_file, upload_url, expect_upload, expect_deduped) without return types