code: def get_num_clusters(filepath: str) -> int:
      name = osp.basename(filepath)
      return int(name[1 : name.find("_")])
  
imports: import copy
  import os
  import os.path
  from dataclasses import dataclass
  from functools import cached_property
  from glob import glob
  from pathlib import Path
  from typing import Callable, List, MutableSequence, Optional, Tuple, Union
  import numpy
  import torch
  from torch.utils.data import ConcatDataset, Subset
  from torch_geometric.data import Data, InMemoryDataset, download_url, extract_zip
  from torch_geometric.data.data import BaseData
label_desc: Use image node_id 1 for calling a global function with example usage: get_num_clusters(filepath) and returns: int