code: def _get_locks_root() -> Path:
      locks_root = Path(os.path.join(__cache_path__, "locks"))
  
      if not locks_root.exists():
          locks_root.mkdir(parents=True, exist_ok=True)
  
      return locks_root
  
file_path: jina/jina/serve/executors/decorators.py
imports: import functools
  import inspect
  import os
  from pathlib import Path
  from typing import Callable, Dict, List, Optional, Sequence, Type, Union
  from jina._docarray import Document, DocumentArray, docarray_v2
  from jina.constants import __cache_path__
  from jina.helper import is_generator, iscoroutinefunction
  from jina.importer import ImportExtensions
label_desc: Use image node_id 1 for calling a global function with example usage: _get_locks_root() and returns: locks_root