<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _DropCommonSuffixes(filename):
 """Drops common suffixes like _test.cc or -inl.h from filename. For example: 'foo/foo' 'foo/bar/foo' 'foo/foo' 'foo/foo_unusualinternal' Args: filename: The input filename. Returns: The filename with the common suffix removed. """

  for suffix in ('test.cc', 'regtest.cc', 'unittest.cc',
                 'inl.h', 'impl.h', 'internal.h'):
    if (filename.endswith(suffix) and len(filename) > len(suffix) and
        filename[-len(suffix) - 1] in ('-', '_')):
      return filename[:-len(suffix) - 1]
  return os.path.splitext(filename)[0]