in src/sagemaker_training/recordio.py [0:0]
def _write_keys_tensor(resolved_type, record, vector):
"""Write the keys entries in the Record object.
Args:
resolved_type (str): Representing the type of key entry.
record (Record object): Record to which the key will be added.
vector (array): Array of keys to be added.
"""
if resolved_type == "Int32":
record.features["values"].int32_tensor.keys.extend(vector)
elif resolved_type == "Float64":
record.features["values"].float64_tensor.keys.extend(vector)
elif resolved_type == "Float32":
record.features["values"].float32_tensor.keys.extend(vector)