code: def from_traverse(cls, traverse_block):
          
          if isinstance(traverse_block, Traverse):
              return cls(traverse_block.direction, traverse_block.edge_name)
          else:
              raise AssertionError(u'Tried to initialize an instance of GremlinFoldedTraverse '
                                   u'with block of type {}'.format(type(traverse_block)))
docs: Create a GremlinFoldedTraverse block as a copy of the given Traverse block.