no assumptions, you are free to offer corrections.
gods in this chapter, as many others, is 
elohyim.  
Psa 82:1
¶
[[A Psalm of Asaph.]] God standeth in the congregation of the mighty; he judgeth among the gods.
This had to happen in Heaven because He judgeth among the
 elohyim or standeth in the congregation
Psa 82:6
I have said, Ye 
are gods; and all of you 
are children of the most High.
אֲֽנִי־֭אָמַרְתִּי אֱלֹהִ֣ים אַתֶּ֑ם וּבְנֵ֖י עֶלְיֹ֣ון כֻּלְּכֶֽם׃
you are 
elohyim, children  of,    God or 
 ben elohyim
Psa 82:7
But ye shall die like men, and fall like one of the princes.
but  ye will die like men and fall like  one of the princes or  rulers (presumed to be Satan,  a prince who fell)
This was recited in John 10
Jhn 10:33¶
The Jews answered him, saying, For a good work we stone thee not; but for blasphemy; and because that thou, being a man, makest thyself God.
Jhn 10:34¶
Jesus answered them, Is it not written in your law, I said, Ye are gods?
Jhn 10:35
If he called them gods, unto whom the word of God came, and the scripture cannot be broken;
Jhn 10:36
Say ye of him, whom the Father hath sanctified, and sent into the world, Thou blasphemest; because I said, I am the Son of God?
Jhn 10:37
If I do not the works of my Father, believe me not.
Jhn 10:38
But if I do, though ye believe not me, believe the works: that ye may know, and believe, that the Father 
is in me, and I in him.
Jhn 10:39
Therefore they sought again to take him: but he escaped out of their hand,
Accused of blasphemy, Jesus responded from Psalms82  saying men including the  lost Pharisees were 
elohyim,  not 
earthly rulers as some suggest.  And if scripture call men 
elohyim, how can they accuse Him of blasphemy?  He added the scripture must be true.