<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _createBitpattern(functioncode, value):
 """Create the bit pattern that is used for writing single bits. This is basically a storage of numerical constants. Args: * functioncode (int):
 can be 5 or 15 * value (int):
 can be 0 or 1 Returns: The bit pattern (string). Raises: TypeError, ValueError """

    _checkFunctioncode(functioncode, [5, 15])
    _checkInt(value, minvalue=0, maxvalue=1, description='inputvalue')

    if functioncode == 5:
        if value == 0:
            return '\x00\x00'
        else:
            return '\xff\x00'

    elif functioncode == 15:
        if value == 0:
            return '\x00'
        else:
            return '\x01'