@staticmethod
def extract_line(text, line_number):
    """
        Extracts specified line from the supplied text based on line number.

        :param text: Text from which line is to be extracted.
        :param line_number: Line number to be extracted.

        :return: The extracted line.
        :rtype: str
        """
    text_lines = text.split('\n')
    if len(text_lines) > 0:
        return text_lines[line_number - 1]
    return False
