code: def __call__(
      self, rest_endpoint, experiment_dir, nni_source_dir, **kwargs
  ):
      exp_id = osp.split(experiment_dir)[-1]
      import_data_file_path = kwargs.get("import_data_file_path")
      proc = subprocess.run(
          [
              "nnictl",
              "experiment",
              "import",
              exp_id,
              "-f",
              import_data_file_path,
          ]
      )
      assert (
          proc.returncode == 0
      ), "`nnictl experiment import {0} -f {1}` failed with code {2}".format(
          exp_id, import_data_file_path, proc.returncode
      )
      imported_data = requests.get(GET_IMPORTED_DATA_URL).json()
      origin_data = load_imported_data(import_data_file_path).replace(
          " ", ""
      )
      assert origin_data in imported_data
  
imports: import os.path
  from os import remove
  import subprocess
  import json
  import requests
  from nni.experiment import Experiment
  from nni.tools.nnictl.updater import load_imported_data
  from utils import METRICS_URL, GET_IMPORTED_DATA_URL
label_desc: Use image node_id 1 for calling the ImportValidator obj's underlying member method code with example usage: obj.__call__(rest_endpoint, experiment_dir, nni_source_dir) without return types