code: def bin2sign(matrix):
      return np.where(matrix == 0, -1, 1)
  
file_path: neupy/neupy/algorithms/memory/discrete_hopfield_network.py
imports: import math
  import random
  import numpy
  from numpy.core.umath_tests import inner1d
  from neupy.utils import format_data
  from neupy.core.properties import Property
  from .base import DiscreteMemory
label_desc: Use image node_id 1 for calling a global function with example usage: bin2sign(matrix) and returns: np