fix: test for callable edge_weights function (#1412)
fix: test for callable edge_weights function (#1412)

required to accept functions directly, otherwise raises this error:
TypeError: isinstance() arg 2 must be a type or tuple of types
ankurankan/pgmpy,pgmpy/pgmpy,ankurankan/pgmpy,pgmpy/pgmpy