input: def Generate_REST_API():
      """Creates a basic REST API with authentication and endpoints in Python using Flask and Flask-RESTful. The API includes JWT authentication, and provides endpoints for managing items.
      Example:
      Running the code will set up an API with the following endpoints:
      - GET /item/<string:name> - requires JWT authentication, returns the item if found, otherwise returns a 404 error.
      - POST /item/<string:name> - adds a new item with the given name and a default price of 12.00, returns the added item with a 201 status code.
      - GET /items - returns a list of all items.
      """
output:     
      from flask import Flask, jsonify, request
      from flask_restful import Api, Resource
      from flask_jwt_extended import JWTManager, jwt_required, create_access_token
  
      app = Flask(__name__)
      api = Api(app)
      app.config['JWT_SECRET_KEY'] = 'super-secret'  # Change this in production
      jwt = JWTManager(app)
  
      items = []
  
      class Item(Resource):
          @jwt_required()
          def get(self, name):
              item = next(filter(lambda x: x['name'] == name, items), None)
              return {'item': item}, 200 if item else 404
  
          def post(self, name):
              if next(filter(lambda x: x['name'] == name, items), None):
                  return {'message': "An item with name '{}' already exists.".format(name)}, 400
              item = {'name': name, 'price': 12.00}
              items.append(item)
              return item, 201
  
      class ItemList(Resource):
          def get(self):
              return {'items': items}
  
      api.add_resource(Item, '/item/<string:name>')
      api.add_resource(ItemList, '/items')
  
      if __name__ == '__main__':
          app.run(debug=True)
  