friend of the court

definition: an adviser to the court on some matter of law who is not a party to the case
example:
speech part: noun
synonyms: amicus curiae

How friend of the court is being used?