<human>:  Can you show me a Python function to return int from bytes signed.
<bot>: Here is a Python function to return int from bytes signed

import struct

def int_from_bytes_signed(b):
  """Converts a bytes object to an integer."""
  return int.from_bytes(b, byteorder='big')

# Enter the bytes object
b = struct.pack('>H', 123)

# Calling the function
print((int_from_bytes_signed(b)))

#Example Output
# 123

#Remember to inspect code for bugs.