code: def __num_two_factors(x):
      """Return how many times integer x can be evenly divided by 2.
  
      Returns 0 for non-positive integers.
      """
      if x <= 0:
          return 0
      num_twos = 0
      while x % 2 == 0:
          num_twos += 1
          x //= 2
  
      return num_twos
  
imports: import warnings
  import numpy
  from numba import jit
  from .None import audio
  from .intervals import interval_frequencies
  from .fft import get_fftlib
  from .convert import cqt_frequencies, note_to_hz
  from .spectrum import stft, istft
  from .pitch import estimate_tuning
  from .._cache import cache
  from ..None import filters
  from ..None import util
  from ..util.exceptions import ParameterError
  from numpy.typing import DTypeLike
  from typing import Optional, Union, Collection, List
  from .._typing import _WindowSpec, _PadMode, _FloatLike_co, _ensure_not_reachable
label_desc: Use image node_id 11 for calling a global function with example usage: __num_two_factors(x) and returns: num_twos, int