def METHOD_NAME(self):
    # Instantiate a table client
    from azure.data.tables import TableClient
    from azure.data.tables import UpdateMode
    with TableClient.from_connection_string(self.connection_string, table_name=self.table_base + "update") as table:
        # Create the table and Table Client
        table.create_table()
        entity = {
            "PartitionKey": "color2",
            "RowKey": "sharpie",
            "text": "Marker",
            "color": "Purple",
            "price": 5.99,
            "inventory": 42,
            "product_id": uuid4(),
        }
        entity1 = {
            "PartitionKey": "color2",
            "RowKey": "crayola",
            "text": "Marker",
            "color": "Red",
            "price": 3.99,
            "inventory": 42,
            "product_id": uuid4(),
        }
        try:
            # Create entities
            table.create_entity(entity=entity)
            created = table.get_entity(partition_key=entity["PartitionKey"], row_key=entity["RowKey"])
            # [START upsert_entity]
            # Try Replace and insert on fail
            insert_entity = table.upsert_entity(mode=UpdateMode.REPLACE, entity=entity1)
            print("Inserted entity: {}".format(insert_entity))
            created["text"] = "NewMarker"
            merged_entity = table.upsert_entity(mode=UpdateMode.MERGE, entity=entity)
            print("Merged entity: {}".format(merged_entity))
            # [END upsert_entity]
            # [START update_entity]
            # Update the entity
            created["text"] = "NewMarker"
            table.update_entity(mode=UpdateMode.REPLACE, entity=created)
            # Get the replaced entity
            replaced = table.get_entity(partition_key=created["PartitionKey"], row_key=created["RowKey"])
            print("Replaced entity: {}".format(replaced))
            # Merge the entity
            replaced["color"] = "Blue"
            table.update_entity(mode=UpdateMode.MERGE, entity=replaced)
            # Get the merged entity
            merged = table.get_entity(partition_key=replaced["PartitionKey"], row_key=replaced["RowKey"])
            print("Merged entity: {}".format(merged))
            # [END update_entity]
        finally:
            # Delete the table
            table.delete_table()