code: def test_data_logger_pred(wandb_init):
      run = wandb_init()
      vd = ValidationDataLogger(
          inputs=np.array([[i, i, i] for i in range(10)]),
          targets=np.array([[i] for i in range(10)]),
          indexes=None,
          validation_row_processor=None,
          prediction_row_processor=None,
          class_labels=None,
          infer_missing_processors=False,
      )
      t = vd.log_predictions(
          vd.make_predictions(lambda inputs: inputs[:, 0])
      )
      cols = ["val_row", "output"]
      tcols = t.columns
  
      assert set(tcols) == set(cols)
      assert np.all([t.data[i] == [i, i] for i in range(10)])
      assert t._get_artifact_entry_ref_url() is not None
      run.finish()
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_validation_data_logger.py
imports: import numpy
  import pytest
  import wandb
  import wandb.data_types
  from wandb.sdk.integration_utils.data_logging import CAN_INFER_IMAGE_AND_VIDEO, ValidationDataLogger
label_desc: Use image node_id 8 for calling a global function with example usage: test_data_logger_pred(wandb_init) without return types