code: def _load_storage_from_import(storage_map, key, out):
      from fsspec.utils import tokenize
  
      from dvc_data.index import FileStorage
  
      if out.stage.is_db_import:
          return
  
      dep = out.stage.deps[0]
      if not out.hash_info:
          # partial import
          fs_cache = out.repo.cache.fs_cache
          storage_map.add_cache(
              FileStorage(
                  key,
                  fs_cache.fs,
                  fs_cache.fs.join(
                      fs_cache.path,
                      dep.fs.protocol,
                      tokenize(dep.fs_path),
                  ),
              )
          )
  
      if (
          out.stage.is_repo_import
          or not out.hash_info
          or dep.fs.version_aware
      ):
          storage_map.add_remote(
              FileStorage(key, dep.fs, dep.fs_path, read_only=True)
          )
  
imports: import logging
  import time
  from collections import defaultdict
  from functools import partial
  from itertools import chain
  from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, Iterator, List, NamedTuple, Optional, Set, Tuple, Union
  from funcy.debug import format_time
  from dvc.dependency import ParamsDependency
  from dvc.fs import LocalFileSystem
  from dvc.fs.callbacks import DEFAULT_CALLBACK
  from dvc.log import logger
  from dvc.utils.objects import cached_property
label_desc: Use image node_id 5 for calling a global function with example usage: _load_storage_from_import(storage_map, key, out) without return types