docstr: Runs store_file_sync to completion.
  
  Don't call this directly; use the `store_file` fixture instead, to ensure that
  whatever logic you're testing works with both sync and async impls.
  
  If you're writing a test that only cares about the sync impl, you should
  probably just call `policy.store_file_sync` directly.
docstr_tok: ["Runs","store_file_sync","to","completion",".","Do","n't","call","this","directly",";","use","the","`","store_file","`","fixture","instead",",","to","ensure","that","whatever","logic","you","'re","testing","works","with","both","sync","and","async","impls",".","If","you","'re","writing","a","test","that","only","cares","about","the","sync","impl",",","you","should","probably","just","call","`","policy.store_file_sync","`","directly","."]
code: def _store_file_sync(policy: WandbStoragePolicy, **kwargs) -> bool:
      """Runs store_file_sync to completion.
  
      Don't call this directly; use the `store_file` fixture instead, to ensure that
      whatever logic you're testing works with both sync and async impls.
  
      If you're writing a test that only cares about the sync impl, you should
      probably just call `policy.store_file_sync` directly.
      """
      return policy.store_file_sync(
          **TestStoreFile._fixture_kwargs_to_kwargs(**kwargs)
      )
  
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 2 for calling the TestStoreFile obj's underlying member method code with example usage: obj._store_file_sync(policy) and returns: policy