code: def ablation(
      path: str,
      directory: str,
      dry_run: bool,
      best_replicates: int,
      save_artifacts: bool,
      move_to_cpu: bool,
      discard_replicates: bool,
  ) -> None:
      """Generate a set of HPO configurations.
  
      A sample file can be run with ``pykeen experiments ablation tests/resources/hpo_complex_nations.json``.
  
      # noqa:DAR101
      """
      from ..ablation.ablation import (
          _run_ablation_experiments,
          prepare_ablation_from_path,
      )
  
      directories = prepare_ablation_from_path(
          path=path, directory=directory, save_artifacts=save_artifacts
      )
  
      _run_ablation_experiments(
          directories=directories,
          best_replicates=best_replicates,
          dry_run=dry_run,
          move_to_cpu=move_to_cpu,
          discard_replicates=discard_replicates,
      )
  
imports: import logging
  import os
  import pathlib
  import shutil
  import sys
  import time
  from typing import Iterable, Optional, Union
  from uuid import uuid4
  import click
  import tabulate
  from more_click import verbose_option
  from tqdm.auto import tqdm
  from pykeen.utils import CONFIGURATION_FILE_FORMATS, load_configuration, normalize_path
label_desc: Use image node_id 7 for calling a global function with example usage: ablation(path, directory, dry_run, best_replicates, save_artifacts, move_to_cpu, discard_replicates) without return types