code: def clear(path: Path) -> None:
      """
      Clears metadata that has been synchronized or trashed, but is still present in local storage.
  
      Lists objects and data to be cleared before deleting the data.
  
      Examples:
  
      \b
      # Clear junk metadata from local storage
      neptune clear
  
      \b
      # Clear junk metadata from directory "foo/bar"
      neptune clear --path foo/bar
      """
      backend = HostedNeptuneBackend(Credentials.from_token())
      clear_runner = ClearRunner(backend=backend)
  
      clear_runner.clear(path)
  
file_path: neptune-client/src/neptune/cli/commands.py
imports: from pathlib import Path
  from typing import List, Optional
  import click
  from neptune.cli.clear import ClearRunner
  from neptune.cli.path_option import path_option
  from neptune.cli.status import StatusRunner
  from neptune.cli.sync import SyncRunner
  from neptune.common.exceptions import NeptuneException
  from neptune.exceptions import CannotSynchronizeOfflineRunsWithoutProject, ProjectNotFound, RunNotFound
  from neptune.internal.backends.api_model import ApiExperiment, Project
  from neptune.internal.backends.hosted_neptune_backend import HostedNeptuneBackend
  from neptune.internal.backends.neptune_backend import NeptuneBackend
  from neptune.internal.credentials import Credentials
  from neptune.internal.disk_queue import DiskQueue
  from neptune.internal.id_formats import QualifiedName
  from neptune.internal.operation import Operation
label_desc: Use image node_id 3 for calling a global function with example usage: clear(path) without return types