code: def is_castable_to_int(s):
      try:
          int(s)
          return True
      except ValueError:
          return False
  
file_path: h2o-llmstudio/llm_studio/src/datasets/text_causal_classification_ds.py
imports: import logging
  from typing import Any, Dict
  import numpy
  import pandas
  import torch
  from llm_studio.src.datasets.text_causal_language_modeling_ds import CustomDataset
  from llm_studio.src.utils.exceptions import LLMDataException
label_desc: Use image node_id 2 for calling a global function with example usage: is_castable_to_int(s) and returns: True, False