from struct import unpack


def read_uint32(fileobj):
    return unpack("I", fileobj.read(4))[0]
from struct import unpack


def read_uint32(fileobj):
    return unpack("I", fileobj.read(4))[0]

# read int as a big endian number
def read_uint32_BE(fileobj):
    return unpack(">I", fileobj.read(4))[0]
Add big endian integer reading
Add big endian integer reading

  from struct import unpack
  
  
  def read_uint32(fileobj):
      return unpack("I", fileobj.read(4))[0]
+ 
+ # read int as a big endian number
+ def read_uint32_BE(fileobj):
+     return unpack(">I", fileobj.read(4))[0]
Add big endian integer reading
## Code Before:
from struct import unpack


def read_uint32(fileobj):
    return unpack("I", fileobj.read(4))[0]
## Instruction:
Add big endian integer reading
## Code After:
from struct import unpack


def read_uint32(fileobj):
    return unpack("I", fileobj.read(4))[0]

# read int as a big endian number
def read_uint32_BE(fileobj):
    return unpack(">I", fileobj.read(4))[0]