def METHOD_NAME(table: Table, variable_title: str) -> Optional[Variable]:
    """Get variable from table based on variable's title."""
    for col in table.columns:
        var_title = table[col].metadata.title
        if var_title == variable_title:
            # return a copy
            v = Variable(table[col].dropna())
            v.metadata = copy.deepcopy(table[col].metadata)
            return v
    else:
        return None