<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_bandwidth_group(self, name, type_p, max_bytes_per_sec):
 """Creates a new bandwidth group. in name of type str Name of the bandwidth group. in type_p of type :class:`BandwidthGroupType` The type of the bandwidth group (network or disk). in max_bytes_per_sec of type int The maximum number of bytes which can be transfered by all entities attached to this group during one second. """

        if not isinstance(name, basestring):
            raise TypeError("name can only be an instance of type basestring")
        if not isinstance(type_p, BandwidthGroupType):
            raise TypeError("type_p can only be an instance of type BandwidthGroupType")
        if not isinstance(max_bytes_per_sec, baseinteger):
            raise TypeError("max_bytes_per_sec can only be an instance of type baseinteger")
        self._call("createBandwidthGroup",
                     in_p=[name, type_p, max_bytes_per_sec])