def METHOD_NAME(self):
    model = BDF(debug=False)
    nid = 1
    cp = 2
    cd = 0
    ps = ''
    seid = 0
    card_count = {'GRID': 2,}
    model = BDF(debug=False)
    model.allocate(card_count)
    nodes = model.grid
    data1 = BDFCard(['GRID', nid, cp, 0., 0., 0., cd, ps, seid])
    data2 = BDFCard(['GRID', nid+1, cp, 0., 0., 0., cd, ps, seid])
    data3 = BDFCard(['GRID', nid+2, cp, 0., 0., 0., cd, ps, seid])
    data4 = BDFCard(['GRID', nid+3, cp, 0., 0., 0., cd, ps, seid])
    nodes.add(data1)
    nodes.add(data2)
    nodes.resize(4, refcheck=False)
    #print('nodes.node_id = %s' % nodes.node_id)
    nodes.add(data3)
    self.assertEqual(len(nodes.node_id), 4)
    self.assertEqual(nodes.n, 4)
    self.assertEqual(nodes.i, 3)
    nodes.shrink(refcheck=False)
    #print('nodes.node_id = %s' % nodes.node_id)
    self.assertEqual(len(nodes.node_id), 3)
    self.assertEqual(nodes.n, 3)
    self.assertEqual(nodes.i, 3)
    nodes.resize(4, refcheck=False)
    nodes.add(data4)
    self.assertEqual(len(nodes.node_id), 4)
    self.assertEqual(nodes.n, 4)
    self.assertEqual(nodes.i, 4)
    f = StringIO()
    nodes.write_card(f, size=8, write_header=False)
    #print(f.getvalue())
    nodes.resize(2, refcheck=False)
    self.assertEqual(len(nodes.node_id), 2)
    self.assertEqual(nodes.n, 2)
    self.assertEqual(nodes.i, 2)
    f = StringIO()
    nodes.write_card(f, size=8, write_header=False)
    #print(f.getvalue())