Würth Industry North America's VMI inventory data is grouped into nested arrays, where each element is a Python dictionary describing one catalog item. Given the nested records, an item identifier, and a dot-separated key path, return the corresponding value from the first matching object.
The key path may reference a top-level key, such as price, or nested dictionaries, such as dimensions.length. Return None if no object has the requested identifier or if any part of the key path is missing. Values may legitimately be None, and should be returned unchanged when the complete path exists.
Implement get_catalog_value(records, item_id, key_path), where records is a list of rows, each row is a list of dictionaries. Every dictionary contains an item_id key, and identifiers are unique across all rows. Each key-path component refers only to dictionary keys.
Return the value at key_path for the object whose item_id equals item_id, or None when the object or path does not exist.
item_id keydef get_catalog_value(records, item_id, key_path):