code: def _compute_log_a(q, sigma, alpha):
      """Compute log(A_alpha) for any positive finite alpha."""
      if float(alpha).is_integer():
          return _compute_log_a_int(q, sigma, int(alpha))
      else:
          return _compute_log_a_frac(q, sigma, alpha)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import sys
  import numpy
  from scipy import special
  import six
label_desc: Use image node_id 8 for calling a global function with example usage: _compute_log_a(q, sigma, alpha) and returns: _compute_log_a_int, _compute_log_a_frac