def METHOD_NAME(cls, rloc16, big_endian=True):
    if isinstance(rloc16, int):
        mac_address = struct.pack(">H", rloc16)
    elif isinstance(rloc16, bytearray):
        mac_address = rloc16[:2]
    else:
        raise RuntimeError("Could not create MAC address from RLOC16. Invalid data type: {}".format(type(rloc16)))
    return cls(mac_address, MacAddressType.SHORT)