code: def generate_sample_sls_module(env_root, module_dir=None):
      
      if module_dir is None:
          module_dir = os.path.join(env_root, 'sampleapp.sls')
      generate_sample_module(module_dir)
      for i in ['config-dev-us-east-1.json', 'handler.py', 'package.json',
                'serverless.yml']:
          shutil.copyfile(
              os.path.join(ROOT,
                           'templates',
                           'serverless',
                           i),
              os.path.join(module_dir, i),
          )
      LOGGER.info("Sample Serverless module created at %s",
                  module_dir)
docs: Generate skeleton Serverless sample module.