parameters: (data, enc='utf8')
return_statement: return data.encode(enc) if isinstance(data, unicode) else bytes(data)
docstring: Convert anything to bytes
docstring_summary: Convert anything to bytes
docstring_tokens: Convert anything to bytes
function: def tob(data, enc='utf8'):
      """ Convert anything to bytes """
      return data.encode(enc) if isinstance(data, unicode) else bytes(data)
function_tokens: def tob ( data , enc = 'utf8' ) : return data . encode ( enc ) if isinstance ( data , unicode ) else bytes ( data )