code: def _check_is_positive_int(num: Any, field_name: str) -> None:
      if not (_is_int(num) and num > 0):
          raise ValueError(
              f"{field_name} has to be positive integer, but {num} given."
          )
  
imports: import logging
  import math
  from dataclasses import dataclass
  from enum import Enum
  from typing import Any, Sequence, Callable, Optional, List
  import numpy
  from pipeline_dp import input_validators
label_desc: Use image node_id 3 for calling a global function with example usage: _check_is_positive_int(num, field_name) without return types