

def get_item(self):
    name = self.body['TableName']
    key = self.body['Key']
    hash_key = key['HashKeyElement']
    range_key = key.get('RangeKeyElement')
    attrs_to_get = self.body.get('AttributesToGet')
    try:
        item = dynamodb_backend.get_item(name, hash_key, range_key)
    except ValueError:
        er = 'com.amazon.coral.validate#ValidationException'
        return self.error(er, status=400)
    if item:
        item_dict = item.describe_attrs(attrs_to_get)
        item_dict['ConsumedCapacityUnits'] = 0.5
        return dynamo_json_dump(attrs_to_get)
    else:
        er = 'com.amazonaws.dynamodb.v20111205#ResourceNotFoundException'
        return self.error(er, status=404)

dataset/ETHPy150Open spulec/moto/moto/dynamodb/responses.py DynamoHandler.get_item/VarMisuse@119/184 `item_dict`->`attrs_to_get`