def form_b(self, n: float)->tuple:
unit = '<STR_LIT>'<EOL>kilo = <NUM_LIT:1000><EOL>mega = <NUM_LIT><EOL>giga = <NUM_LIT><EOL>bps = <NUM_LIT:0><EOL>if self.units == '<STR_LIT>' or self.units == '<STR_LIT:B>':<EOL><INDENT>unit = '<STR_LIT>'<EOL>kilo = <NUM_LIT><EOL>mega = <NUM_LIT><EOL>giga = <NUM_LIT><EOL><DEDENT>if n < kilo:<EOL><INDENT>bps = float(n)<EOL><DEDENT>if n >= kilo and n < mega:<EOL><INDENT>unit = "<STR_LIT>" + unit<EOL>bps = float(n / <NUM_LIT>)<EOL><DEDENT>if n >= mega and n < giga:<EOL><INDENT>unit = "<STR_LIT:M>" + unit<EOL>bps = float(n / (<NUM_LIT> * <NUM_LIT>))<EOL><DEDENT>if n >= giga:<EOL><INDENT>unit = "<STR_LIT>" + unit<EOL>bps = float(n / (<NUM_LIT> * <NUM_LIT> * <NUM_LIT>))<EOL><DEDENT>return bps, unit<EOL>
formats a bps as bps/kbps/mbps/gbps etc
handles whether its meant to be in bytes
:param n: input float
:rtype tuple:
:return: tuple of float-number of mbps etc, str-units