<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create(cls, ip_version, datacenter, bandwidth, vm=None, vlan=None, ip=None, background=False):
 """ Create a public ip and attach it if vm is given. """

        return Iface.create(ip_version, datacenter, bandwidth, vlan, vm, ip,
                            background)