def GetPackageMetadata(
      self, install_types=None, catalogs=None, filename=None):
    """Gets a list of all packages of given install_types and catalogs.

    Args:
      install_types: list of string install types.
      catalogs: list of string catalogs.
      filename: str filename of the package.
    Returns:
      str body from response.
    Raises:
      SimianServerError: if the Simian server returned an error (status != 200)
    """
    query = []
    if install_types:
      query.append('install_types=%s' % install_types)
    if catalogs:
      query.append('catalogs=%s' % catalogs)
    if filename:
      query.append(filename % 'filename=%s')
    query = '&'.join(query)
    return self._SimianRequest('GET', '/pkgsinfo/?%s' % query)
dataset/ETHPy150Open google/simian/src/simian/client/client.py/SimianClient.GetPackageMetadata/swapped operands of `%`