code: def get_offset(x: int) -> int:
      """Returns an int, otherwise defaults to zero."""
      return int(x) if isinstance(x, int) else 0
  
file_path: pandas-ta/pandas_ta/utils/_core.py
imports: import re
  from pathlib import Path
  from sys import float_info
  from numpy import argmax, argmin
  from pandas import DataFrame, Series
  from pandas.api.types import is_datetime64_any_dtype
  from pandas_ta import Imports
label_desc: Use image node_id 4 for calling a global function with example usage: get_offset(x) and returns: unknown