<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def compress(content, method='gzip'):
 """ Compresses file content. Required: content (bytes):
 The information to be compressed method (str, default: 'gzip'):
 None or gzip Raises: NotImplementedError if an unsupported codec is specified. compression.DecodeError if the encoder has an issue Return: compressed content """

  if method == True:
    method = 'gzip' # backwards compatibility

  method = (method or '').lower()

  if method == '':
    return content
  elif method == 'gzip': 
    return gzip_compress(content)
  raise NotImplementedError(str(method) + ' is not currently supported. Supported Options: None, gzip')