def extract_comment(line):
    """
    Extract comment string from `# This is comment`。
    """
    if not line.startswith("#"):
        raise ValueError

    index = 0
    for char in line:
        if char == "#":
            index += 1
        else:
            return line[index:].strip()