code: def check_alignment_loc_alignment(
      obj, return_metadata=False, var_name="obj"
  ):
      """Check whether object has mtype `alignment_loc` for scitype `Alignment`."""
      valid, msg = check_align(obj, name=var_name, index="loc")
  
      return _ret(valid, msg, {}, return_metadata)
  
imports: import numpy
  import pandas
  from sktime.datatypes._common import _ret
label_desc: Use image node_id 3 for calling a global function with example usage: check_alignment_loc_alignment(obj, return_metadata, var_name) and returns: _ret