code: def test_create_param_broadcast_pattern():
      from lasagne.utils import create_param
  
      for shape in (10, 1, 20), (1, 2), (3, 1), (2, 3):
          bcast = tuple(s == 1 for s in shape)
          assert create_param(np.zeros, shape).broadcastable == bcast
          assert (
              create_param(
                  np.zeros(shape, np.float32), shape
              ).broadcastable
              == bcast
          )
  
imports: from mock import Mock
  import pytest
  import numpy
  import theano
  import theano.tensor
label_desc: Use image node_id 29 for calling a global function with example usage: test_create_param_broadcast_pattern() without return types