code: def duplicated(
      keep: Literal["first", "last", False] = "first"
  ) -> Duplicated:
      """
      Return whether a given value is duplicated
      """
      return Duplicated(keep=keep)
  
file_path: pygraphistry/graphistry/compute/predicates/categorical.py
imports: from typing import Any, TYPE_CHECKING
  from typing_extensions import Literal
  import pandas
  from .ASTPredicate import ASTPredicate
label_desc: Use image node_id 1 for calling a global function with example usage: duplicated(keep) and returns: Duplicated