import re


def find_value(code, value):
    """ Returns the value of a given variable name within the code """
    value_pattern = re.compile(rf"{re.escape(value)} ?= ?([^=][a-zA-Z0-9\.'/_)(]*)")

    target = None
    for line in code:
        if value_pattern.search(line):
            target = re.findall(value_pattern, line)
            break

    return target[0] if target is not None else value