def lookup_method(faker, map_method_element, map_method, path):
    """Lookup the method in Faker for generating the new value(s)"""
    try:
        method = getattr(faker, map_method_element)
    except TypeError as e:
        print(f'error getting map method "{map_method}" for path "{path}"')
        raise e
    except AttributeError as e:
        print(
            f'map method not found "{map_method_element}" for path "{path}"')
        raise e
    return method