code: def extract_arguments(arguments, long_keys, key_prefix='--'):
      
      long_arguments = extract(arguments, long_keys)
      return dict(
          [(key.replace(key_prefix, ''), value) for key, value in long_arguments.items()]
      )
docs: :param arguments: dict of command line arguments