code: def remove_duplicates(df, cols):
      """Remove duplicated entries.
  
      Args:
          df (pd.DataFrame): Pandas dataframe.
          cols (list of str): Name of columns in which to look for duplicates.
  
      Returns:
          df (pandas.DataFrame): Pandas dataframe with duplicate rows dropped.
  
      """
      for col in cols:
          # Reset index
          df = df.reset_index(drop=True)
  
          # Find where the identifier variable is duplicated
          dup_rows = np.where(df.duplicated([col]))[0]
  
          # Drop duplicated rows
          df = df.drop(dup_rows)
  
      return df
  
file_path: recommenders/recommenders/datasets/covid_utils.py
imports: import numpy
  import pandas
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: remove_duplicates(df, cols) and returns: df