As per the title, no in-built method exists to calculate cracking moment under the presence of axial tension or compression forces. The assumption of the built-in calculate_cracking_moment() method is N*=0 kN
Under tension or compression, there is a direct tensile stress (and potentially a moment on the assumption of the axial load acting at the geometric centroid if section is non-symmetric) that is required to be combined with the moment component of stress.