code: def get_drift(x: int) -> int:
      """Returns an int if not zero, otherwise defaults to one."""
      return int(x) if isinstance(x, int) and x != 0 else 1
  
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 3 for calling a global function with example usage: get_drift(x) and returns: unknown