code: def get_location(model_obj):
      
      the_model = get_model(model_obj)
      line, col = the_model._tx_parser.pos_to_linecol(
          model_obj._tx_position)
      return {"line": line, "col": col, "filename": the_model._tx_filename}
docs: Args:
          model_obj: the model object of interest
  
      Returns:
          the line, col and filename of the model element.
          The filename may be None.
          This function may be used to fill exceptions