@classmethod<EOL><INDENT>def create_for_block(<EOL>cls, i=None, name=None, cname=None, version=None, **kwargs):<DEDENT>
if cname is None:<EOL><INDENT>cname = name or '<STR_LIT>'.format(idx=i)<EOL><DEDENT>if name is None:<EOL><INDENT>name = cname<EOL><DEDENT>try:<EOL><INDENT>if version[<NUM_LIT:0>] == <NUM_LIT:0> and version[<NUM_LIT:1>] <= <NUM_LIT:10> and version[<NUM_LIT:2>] == <NUM_LIT:0>:<EOL><INDENT>m = re.search(r"<STR_LIT>", name)<EOL>if m:<EOL><INDENT>name = "<STR_LIT>".format(group=m.groups()[<NUM_LIT:0>])<EOL><DEDENT><DEDENT><DEDENT>except IndexError:<EOL><INDENT>pass<EOL><DEDENT>return cls(name=name, cname=cname, **kwargs)<EOL>
return a new datacol with the block i