Binance frontend configuration often contains deeply nested dictionaries and arrays, such as spot trading preferences or Binance Pay UI settings. Implement a Python function that retrieves a nested value using a lodash.get-style path without raising an exception when a path is missing.
Implement get_value(obj, path, default_value).
obj is a nested Python dictionary or list.path is either a dot and bracket string, such as "user.preferences[0].theme", or a list of path segments, such as ["user", "preferences", 0, "theme"].["display.name"].default_value only when the path cannot be resolved. An existing value of None must be returned as None.obj.obj contains at most 10^4 nested containers or values.100 segments.def get_value(obj, path, default_value):