code: def test_dimension_consistency(tmpdir):
      r"""Test that an error is raised if the size of the 'coordinates' array is
      not equal to ``3*len(symbols)``"""
  
      extra_coordinate = np.array(
          [0.0, 0.0, -0.66140414, 0.0, 0.0, 0.66140414, -0.987]
      )
      with pytest.raises(
          ValueError,
          match="The size of the array 'coordinates' has to be",
      ):
          qchem.meanfield(
              symbols,
              extra_coordinate,
              name=name,
              outpath=tmpdir.strpath,
          )
  
imports: import os
  import numpy
  import pytest
  from pennylane import qchem
label_desc: Use image node_id 4 for calling a global function with example usage: test_dimension_consistency(tmpdir) without return types