Code Craft: given pre-written functions acting as APIs, use them to create a new object and return it.
Asked in the phone screen code craft stage. Implement build_object(payload) using accessor APIs that retrieve the payload's id, name, and attributes fields.
payload is a dictionary with keys id, name, and attributes. Return a new dictionary containing those same keys and values. The returned dictionary must not be the original payload object.
payload contains exactly the keys id, name, and attributes.id is an integer.name is a string.attributes is a JSON-compatible dictionary.def build_object(payload):