def METHOD_NAME(absolute_magnitude, d_parsec):
    """Converts absolute to apparent magnitudes.
    :param absolute_magnitude: absolute magnitude of object
    :param d_parsec: distance to object in units parsec
    :return: apparent magnitude
    """
    m_apparent = 5.8 * (np.log10(d_parsec) - 1) + absolute_magnitude
    return m_apparent