You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: no_amd.rs
    path of file: ./repos/oxc/crates/oxc_linter/src/rules/import
    
    the code of the file until where you have to start completion: use oxc_ast::ast::{Argument, Expression};
use oxc_ast::AstKind;
use oxc_diagnostics::{
    miette::{self, Diagnostic},
    thiserror::Error,
};
use oxc_macros::declare_oxc_lint;
use oxc_span::{CompactStr, Span};

use crate::{context::LintContext, rule::Rule, AstNode};

#[derive(Debug, Error, Diagnostic)]
#[error("eslint-plugin-import(no-amd): Do not use AMD `require` and `define` calls.")]
#[diagnostic(severity(warning), help("Expected imports instead of AMD {1}()"))]
struct NoAmdDiagnostic(#[label] pub Span, CompactStr);

#[derive(Debug, Default, Clone)]
pub struct NoAmd;

declare_oxc_lint!(
    /// ### What it does
    ///
    /// Forbid AMD `require` and `define` calls.
    ///
    /
    
fn test() {
    use crate::tester::Tester;

    let pass = vec![
        "var _ = require('lodash')",
        "var find = require('lodash.find')",
        "var foo = require('./foo')",
        "var foo = require('../foo')",
        "var foo = require('foo')",
        "var foo = require('./')",
        "var foo = require('@scope/foo')",
        "var bar = require('./bar/index')",
        r#"import "x";"#,
        r#"import x from "x""#,
        r#"var x = require("x")"#,
        r#"require("x")"#,
        // 2-args, not an array
        r#"require("x", "y")"#,
        // random other function
        r"setTimeout(foo, 100)",
        // non-identifier callee
        r"(a || b)(1, 2, 3)",
        // nested scope is fine
        r#"function x() { define(["a"], function (a) {}) }"#,
        r#"function x() { require(["a"], function (a) {}) }"#,
        // unmatched arg types/number
        r"define(0, 1, 2)",
        r#"define("a")"#,
    ];

    let fail = vec![
        "require([a, b], function() {})",
        "define([a, b], function() {})",
        r"define([], function() {})",
        r#"define(["a"], function(a) { console.log(a); })"#,
        r"require([], function() {})",
        r#"require(["a"], function(a) { console.log(a); })"#,
    ];

    Tester::new(NoAmd::NAME, pass, fail)
        .change_rule_path("no-amd.js")
        .with_import_plugin(true)
        .test_and_snapshot();
}