Human: how to do bit masking in 3. Assistant: 
Here is a Python code to do bit masking in 3D

import numpy as np

def bit_mask(number, mask):
    """Returns the bit-masked version of `number`."""
    return (number & mask)

# Enter the number
number = 10

# Enter the mask
mask = 100

# Calling the function
print((bit_mask(number, mask)))

#Example Output
# 0

#Remember to inspect code for bugs.