code: def trivial_metric(true, pred, task_type):
      global num_trivial_metric_calls
      num_trivial_metric_calls += 1
      return 1
  
imports: import os.path
  import warnings
  from collections import namedtuple
  import pytest
  import torch
  from torch_geometric import seed_everything
  from torch_geometric.graphgym import register
  from torch_geometric.graphgym.checkpoint import get_ckpt_dir
  from torch_geometric.graphgym.config import cfg, dump_cfg, load_cfg, set_out_dir, set_run_dir
  from torch_geometric.graphgym.loader import create_loader
  from torch_geometric.graphgym.logger import LoggerCallback, set_printing
  from torch_geometric.graphgym.model_builder import create_model
  from torch_geometric.graphgym.models.gnn import FeatureEncoder, GNNStackStage
  from torch_geometric.graphgym.models.head import GNNNodeHead
  from torch_geometric.graphgym.train import GraphGymDataModule, train
  from torch_geometric.graphgym.utils import agg_runs, auto_select_device, params_count
  from torch_geometric.testing import onlyOnline, withPackage
label_desc: Use image node_id 1 for calling a global function with example usage: trivial_metric(true, pred, task_type) and returns: int