class_docstr: Result of prompt construction.
code: def num_train_instances(self) -> int:
      # Number of training instances in the prompt
      return len(self.train_instance_blocks)
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/adaptation/prompt.py
imports: import re
  from dataclasses import dataclass
  from typing import List, Optional
  from .adapter_spec import Substitution
label_desc: Use image node_id 3 for calling the Prompt obj's underlying member method code with example usage: obj.num_train_instances() and returns: len