code: def _success_file_path(local_path):
      if os.path.isdir(local_path):
          return os.path.join(local_path, ".SUCCESS")
      else:
          dirn, fn = os.path.split(local_path)
          return os.path.join(dirn, f".{fn}.SUCCESS")
  
imports: import os
  import shutil
  import typing
  from typing import Any, Dict, List, Optional, Union, cast
  import filelock
  from structlog import get_logger
  from modelkit.assets import errors
  from modelkit.assets.drivers.local import LocalStorageDriver
  from modelkit.assets.remote import NoConfiguredProviderError, StorageProvider
  from modelkit.assets.settings import AssetSpec
  from modelkit.utils.logging import ContextualizedLogging
label_desc: Use image node_id 1 for calling a global function with example usage: _success_file_path(local_path) and returns: os, os